Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: An empty entry in the RoleBinding-Subject-Array causes the operator to fail #11

Open
1 task done
leonsteinhaeuser opened this issue Dec 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@leonsteinhaeuser
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If the value contains an empty index, an error is currently displayed.

Expected Behavior

Empty array index entries are ignored.

Version

v0.1.0

Steps To Reproduce

  1. Install Operator
  2. create namespace
  3. label namespace
  4. annotate namespace and add a , at the end of the rolebinding subject definition

Additional context:

See:

func ParseRoleBindingSubjects(rulesStr string) ([]rbacv1.Subject, error) {

@leonsteinhaeuser leonsteinhaeuser added the bug Something isn't working label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant