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

ClusterRoles and ClusterRoleBindings wrongly contain the namespace in the metadata section #406

Closed
Raffo opened this issue Apr 30, 2021 · 0 comments · Fixed by #407 or #414
Closed

Comments

@Raffo
Copy link
Contributor

Raffo commented Apr 30, 2021

What happened:

Some ClusterRoleBindings and ClusterRoles contain a namespace in the metadata section. This is "invalid" as the resources are not namespaced as mentioned in the documentation https://kubernetes.io/docs/reference/access-authn-authz/rbac/#clusterrole-example.

What you expected to happen:

I would expect the YAML for ClusterRoles and ClusterRoleBindings to not contain the metadata.namespace field.

How to reproduce it:

Just a visual inspection of https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/charts/latest/azuredisk-csi-driver/templates/rbac-csi-snapshot-controller.yaml#L62 and other files.

Anything else we need to know?:

I would love to understand what is the process to address that. Should I change the manifests in latest? Would a fix be backported? Happy to help once I understand how this is supposed to work.

Environment:

  • CSI Driver version: v1.1.1
  • Kubernetes version (use kubectl version): 1.19
  • OS (e.g. from /etc/os-release): default AKS node OS

This is the same problem as kubernetes-sigs/azuredisk-csi-driver#819

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant