Skip to content

Commit ed16dab

Browse files
authored
fix: create and also update svc annotations (#474) (#492)
Signed-off-by: hoyhbx <hoyhbx@gmail.com> Signed-off-by: hoyhbx <hoyhbx@gmail.com>
1 parent 2403ac5 commit ed16dab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/zk/synchronizers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func SyncStatefulSet(curr *appsv1.StatefulSet, next *appsv1.StatefulSet) {
2626
func SyncService(curr *v1.Service, next *v1.Service) {
2727
curr.Spec.Ports = next.Spec.Ports
2828
curr.Spec.Type = next.Spec.Type
29+
curr.SetAnnotations(next.GetAnnotations())
2930
}
3031

3132
// SyncConfigMap synchronizes a configmap with an updated spec and validates it

0 commit comments

Comments
 (0)