Skip to content

Commit

Permalink
Update controllers/nstemplateset/namespaces.go
Browse files Browse the repository at this point in the history
Co-authored-by: Rajiv Senthilnathan <[email protected]>
  • Loading branch information
alexeykazakov and rajivnathan authored Jul 5, 2024
1 parent 3679b4c commit 0c41419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/nstemplateset/namespaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0c41419

Please sign in to comment.