8000 (Feature) Add `ACSDeploymentSynced` condition type and fix comparison… · sharekey/kube-arangodb@635ed17 · GitHub
[go: up one dir, main page]

Skip to content

Commit 635ed17

Browse files
authored
(Feature) Add ACSDeploymentSynced condition type and fix comparison of SecretHashes method (arangodb#944)
1 parent cf46f5b commit 635ed17

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- (Feature) Allow raw json value for license token-v2
99
- (Update) Replace `beta.kubernetes.io/arch` to `kubernetes.io/arch` in Operator Chart
1010
- (Feature) Add operator shutdown handler for graceful termination
11+
- (Feature) Add `ACSDeploymentSynced` condition type and fix comparison of `SecretHashes` method
1112

1213
## [1.2.12](https://github.com/arangodb/kube-arangodb/tree/1.2.12) (2022-05-10)
1314
- (Feature) Add CoreV1 Endpoints Inspector

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)
0