Skip to content

Mismatch between Roles and RoleAssignments when setting internal.autoGenerateCert: false #458

@uivraeus

Description

@uivraeus

In core/templates/role.yaml, there is a conditional if .Values.internal.autoGenerateCert around the roles neuvector-binding-lease, neuvector-binding-job-creation and neuvector-binding-cert-upgrader. So, if this boolean is false, then none of those three Roles are included.

The corresponding RoleBindings in core/templates/rolebinding.yaml also includes the conditional if .Values.internal.autoGenerateCert, but only for the neuvector-binding-lease.

Therefore, two RoleBindings (neuvector-binding-job-creation and neuvector-binding-cert-upgrader) are created with references to non-existing Roles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions