more fixes on clientSet vs getters

This commit is contained in:
Felix Kunde
2020-12-08 15:42:49 +01:00
parent 37bc33d176
commit ec0d8f8aec
5 changed files with 14 additions and 8 deletions
+5
View File
@@ -398,6 +398,11 @@ func (c *Cluster) syncStatefulSet() error {
// AnnotationsToPropagate get the annotations to update if required
// based on the annotations in postgres CRD
func (c *Cluster) AnnotationsToPropagate(annotations map[string]string) map[string]string {
if annotations == nil {
annotations = make(map[string]string)
}
toPropagateAnnotations := c.OpConfig.DownscalerAnnotations
pgCRDAnnotations := c.Postgresql.ObjectMeta.GetAnnotations()