mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 03:28:00 +02:00
should compare label for service and update
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
LEADER_LABEL_VALUE = "master" # master or primary
|
LEADER_LABEL_VALUE = "master" # value should be the same as in the configmap: pod_leader_label_value
|
||||||
SPILO_CURRENT = "registry.opensource.zalan.do/acid/spilo-16-e2e:0.1"
|
SPILO_CURRENT = "registry.opensource.zalan.do/acid/spilo-16-e2e:0.1"
|
||||||
SPILO_LAZY = "registry.opensource.zalan.do/acid/spilo-16-e2e:0.2"
|
SPILO_LAZY = "registry.opensource.zalan.do/acid/spilo-16-e2e:0.2"
|
||||||
SPILO_FULL_IMAGE = "ghcr.io/zalando/spilo-16:3.2-p3"
|
SPILO_FULL_IMAGE = "ghcr.io/zalando/spilo-16:3.2-p3"
|
||||||
|
|||||||
@@ -837,6 +837,10 @@ func (c *Cluster) compareServices(old, new *v1.Service) (bool, string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !reflect.DeepEqual(old.Labels, new.Labels) {
|
||||||
|
return false, "new service's labels do not match the current ones"
|
||||||
|
}
|
||||||
|
|
||||||
if !reflect.DeepEqual(old.ObjectMeta.OwnerReferences, new.ObjectMeta.OwnerReferences) {
|
if !reflect.DeepEqual(old.ObjectMeta.OwnerReferences, new.ObjectMeta.OwnerReferences) {
|
||||||
return false, "new service's owner references do not match the current ones"
|
return false, "new service's owner references do not match the current ones"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user