Skip to content

[Bug]: pkg/object/ParseObjMetadata incorrectly assumes rbac resource cannot have underscore in its name #487

Description

@somtochiama

If a clusterrole / binding has an underscore in its name (e.g roles_ops which is valid in kubernetes), Using the ParseObjMetadata function failes with

too many fields within: 

This can be resolved by replacing the underscore with a double underscore (like it is here done for colon) or removing the check for underscores in the function.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions