From fa3e23b4593b2d3f0b222eb9abbeab15105caf17 Mon Sep 17 00:00:00 2001 From: hoyhbx Date: Mon, 1 Aug 2022 17:32:42 -0500 Subject: [PATCH] fix: create and also update svc annotations (#474) Signed-off-by: hoyhbx --- pkg/zk/synchronizers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/zk/synchronizers.go b/pkg/zk/synchronizers.go index 405c51117..77a37f89f 100644 --- a/pkg/zk/synchronizers.go +++ b/pkg/zk/synchronizers.go @@ -26,6 +26,7 @@ func SyncStatefulSet(curr *appsv1.StatefulSet, next *appsv1.StatefulSet) { func SyncService(curr *v1.Service, next *v1.Service) { curr.Spec.Ports = next.Spec.Ports curr.Spec.Type = next.Spec.Type + curr.SetAnnotations(next.GetAnnotations()) } // SyncConfigMap synchronizes a configmap with an updated spec and validates it