Skip to content

Commit

Permalink
[wip] fix SA annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
stuggi committed Jul 9, 2024
1 parent c995c11 commit 1aaac04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/common/serviceaccount/serviceaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1aaac04

Please sign in to comment.