From ed16dab196983394da1b59bb853fe1fdd45316b4 Mon Sep 17 00:00:00 2001 From: Acto Team <97862925+hoyhbx@users.noreply.github.com> Date: Thu, 11 Aug 2022 23:37:36 -0500 Subject: [PATCH] fix: create and also update svc annotations (#474) (#492) Signed-off-by: hoyhbx 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