Skip to content

Commit 0214318

Browse files
committed
Iteration
1 parent 5499e63 commit 0214318

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pkg/apis/deployment/v1/secret_hashes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ type SecretHashes struct {
3838

3939
// Equal compares two SecretHashes
4040
func (sh *SecretHashes) Equal(other *SecretHashes) bool {
41-
if sh == nil || other == nil {
42-
return false
43-
} else if sh == other {
41+
if sh == nil && other == nil {
4442
return true
43+
} else if sh == nil || other == nil {
44+
return false
4545
}
4646

4747
return sh.AuthJWT == other.AuthJWT &&

pkg/apis/deployment/v2alpha1/secret_hashes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ type SecretHashes struct {
3838

3939
// Equal compares two SecretHashes
4040
func (sh *SecretHashes) Equal(other *SecretHashes) bool {
41-
if sh == nil || other == nil {
42-
return false
43-
} else if sh == other {
41+
if sh == nil && other == nil {
4442
return true
43+
} else if sh == nil || other == nil {
44+
return false
4545
}
4646

4747
return sh.AuthJWT == other.AuthJWT &&

pkg/deployment/acs/sutil/conditions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ const (
2828
RemoteDeploymentReadyCondition api.ConditionType = "RemoteDeploymentReadyCondition"
2929
RemoteCacheReadyCondition api.ConditionType = "RemoteCacheReady"
3030
ConnectionReadyCondition api.ConditionType = "ConnectionReady"
31+
ACSDeploymentSyncedCondition api.ConditionType = "ACSDeploymentSynced"
3132
)

0 commit comments

Comments
 (0)