1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00

(Feature) Add ACSDeploymentSynced condition type and fix comparison of SecretHashes method (#944)

This commit is contained in:
jwierzbo 2022-05-26 12:56:51 +02:00 committed by GitHub
parent cf46f5b42b
commit 635ed17f7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View file

@ -8,6 +8,7 @@
- (Feature) Allow raw json value for license token-v2
- (Update) Replace `beta.kubernetes.io/arch` to `kubernetes.io/arch` in Operator Chart
- (Feature) Add operator shutdown handler for graceful termination
- (Feature) Add `ACSDeploymentSynced` condition type and fix comparison of `SecretHashes` method
## [1.2.12](https://github.com/arangodb/kube-arangodb/tree/1.2.12) (2022-05-10)
- (Feature) Add CoreV1 Endpoints Inspector

View file

@ -38,10 +38,10 @@ type SecretHashes struct {
// Equal compares two SecretHashes
func (sh *SecretHashes) Equal(other *SecretHashes) bool {
if sh == nil || other == nil {
return false
} else if sh == other {
if sh == nil && other == nil {
return true
} else if sh == nil || other == nil {
return false
}
return sh.AuthJWT == other.AuthJWT &&

View file

@ -38,10 +38,10 @@ type SecretHashes struct {
// Equal compares two SecretHashes
func (sh *SecretHashes) Equal(other *SecretHashes) bool {
if sh == nil || other == nil {
return false
} else if sh == other {
if sh == nil && other == nil {
return true
} else if sh == nil || other == nil {
return false
}
return sh.AuthJWT == other.AuthJWT &&

View file

@ -28,4 +28,5 @@ const (
RemoteDeploymentReadyCondition api.ConditionType = "RemoteDeploymentReadyCondition"
RemoteCacheReadyCondition api.ConditionType = "RemoteCacheReady"
ConnectionReadyCondition api.ConditionType = "ConnectionReady"
ACSDeploymentSyncedCondition api.ConditionType = "ACSDeploymentSynced"
)