From 1aaac042946c9f74b50495cae399d617cb25b08f Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Tue, 9 Jul 2024 15:59:03 +0200 Subject: [PATCH] [wip] fix SA annotation --- modules/common/serviceaccount/serviceaccount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/common/serviceaccount/serviceaccount.go b/modules/common/serviceaccount/serviceaccount.go index a73cfdd8..409c1977 100644 --- a/modules/common/serviceaccount/serviceaccount.go +++ b/modules/common/serviceaccount/serviceaccount.go @@ -56,7 +56,7 @@ func (s *ServiceAccount) CreateOrPatch( op, err := controllerutil.CreateOrPatch(ctx, h.GetClient(), sa, func() error { sa.Labels = util.MergeStringMaps(sa.Labels, s.serviceAccount.Labels) - sa.Annotations = util.MergeStringMaps(sa.Labels, s.serviceAccount.Annotations) + sa.Annotations = util.MergeStringMaps(sa.Annotations, s.serviceAccount.Annotations) err := controllerutil.SetControllerReference(h.GetBeforeObject(), sa, h.GetScheme()) if err != nil {