Skip to content

Fix clusterrolebinding by adding a namespace to sa

Placeholder Manuel Buil requested to merge github/fork/manuelbuil/fixcrb into master

In custerrolebindings, serviceaccounts need to have a namespace, otherwise we get the error:

ClusterRoleBinding.rbac.authorization.k8s.io "system-upgrade-drainer" is invalid: subjects[0].namespace: Required value

This PR fixes that by adding the namespace system-upgrade, which is what that serviceAccount has: https://github.com/rancher/system-upgrade-controller/blob/v0.13.4/manifests/system-upgrade-controller.yaml#L12

Merge request reports

Loading