Skip to content

Commit

Permalink
Update controllers/nstemplateset/space_roles.go
Browse files Browse the repository at this point in the history
Co-authored-by: Francisc Munteanu <fmuntean@redhat.com>
  • Loading branch information
filariow and mfrancisc authored Apr 8, 2024
1 parent 16e402d commit 4dbfcfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/nstemplateset/space_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r *spaceRolesManager) ensure(ctx context.Context, nsTmplSet *toolchainv1al
}
logger.Info("ensuring space roles", "namespace_count", len(nss), "role_count", len(nsTmplSet.Spec.SpaceRoles))
for _, ns := range nss {
ns := ns
ns := ns // TODO We won't need it after upgrading to go 1.22: https://go.dev/blog/loopvar-preview
// space roles previously applied
// read annotation to see what was applied last time, so we can compare with the new SpaceRoles and remove all obsolete resources (based on their kind/names)
var lastAppliedSpaceRoles []toolchainv1alpha1.NSTemplateSetSpaceRole
Expand Down

0 comments on commit 4dbfcfe

Please sign in to comment.