From 0c41419565f80b7d4e3d75035be94cafb6afff87 Mon Sep 17 00:00:00 2001 From: Alexey Kazakov Date: Fri, 5 Jul 2024 12:00:15 -0700 Subject: [PATCH] Update controllers/nstemplateset/namespaces.go Co-authored-by: Rajiv Senthilnathan --- controllers/nstemplateset/namespaces.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/nstemplateset/namespaces.go b/controllers/nstemplateset/namespaces.go index 28a936f6..29b54ac5 100644 --- a/controllers/nstemplateset/namespaces.go +++ b/controllers/nstemplateset/namespaces.go @@ -426,7 +426,7 @@ func (r *namespacesManager) isUpToDateAndProvisioned(ctx context.Context, ns *co } // check the names of the roles and roleBindings as well - // ignore featured objects if the corresponding feature is not enabled in the NSTemplateSet + // ignore feature-enabled objects if the corresponding feature is not enabled in the NSTemplateSet for _, role := range processedRoles { // It's NOT up-to-date if NOT found but should be created OR found but should NOT be created. if found, err := r.containsRole(roleList.Items, role, spacename); (found != shouldCreate(role, nsTmplSet)) || err != nil {