diff --git a/controllers/nstemplateset/space_roles.go b/controllers/nstemplateset/space_roles.go index 84e995be..3d1f70b8 100644 --- a/controllers/nstemplateset/space_roles.go +++ b/controllers/nstemplateset/space_roles.go @@ -78,7 +78,7 @@ func (r *spaceRolesManager) ensure(ctx context.Context, nsTmplSet *toolchainv1al sr, err := json.Marshal(nsTmplSet.Spec.SpaceRoles) if err != nil { return false, r.wrapErrorWithStatusUpdate(lctx, nsTmplSet, r.setStatusProvisionFailed, err, - "failed to marshal space roles to update '%v' annotation on namespace", toolchainv1alpha1.LastAppliedSpaceRolesAnnotationKey) + "failed to marshal space roles to update '%s' annotation on namespace", toolchainv1alpha1.LastAppliedSpaceRolesAnnotationKey) } if ns.Annotations == nil { ns.Annotations = map[string]string{} @@ -86,7 +86,7 @@ func (r *spaceRolesManager) ensure(ctx context.Context, nsTmplSet *toolchainv1al ns.Annotations[toolchainv1alpha1.LastAppliedSpaceRolesAnnotationKey] = string(sr) if err := r.Client.Update(ctx, &ns); err != nil { return false, r.wrapErrorWithStatusUpdate(lctx, nsTmplSet, r.setStatusProvisionFailed, err, - "failed to update namespace with '%q' annotation", toolchainv1alpha1.LastAppliedSpaceRolesAnnotationKey) + "failed to update namespace with '%s' annotation", toolchainv1alpha1.LastAppliedSpaceRolesAnnotationKey) } logger.Info("updated annotation on namespace", toolchainv1alpha1.LastAppliedSpaceRolesAnnotationKey, string(sr)) return true, nil