Skip to content

Commit

Permalink
fix getting cluster role bindings missing admins list
Browse files Browse the repository at this point in the history
  • Loading branch information
m00g3n committed Aug 5, 2024
1 parent ec1673f commit 9f89a79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func sFnApplyClusterRoleBindings(ctx context.Context, m *fsm, s *systemState) (s
}

removed := getRemoved(crbList.Items, s.instance.Spec.Security.Administrators)
var missing []rbacv1.ClusterRoleBinding
missing := getMissing(crbList.Items, s.instance.Spec.Security.Administrators)

// FIXME add status check
if len(removed) == 0 && len(missing) == 0 {
Expand Down

0 comments on commit 9f89a79

Please sign in to comment.