kube-prometheus: fix addon-resizer role binding

The addon resizer was referring to an incorrect role binding and was unable to
access the API.  This changes the rolebinding name to refer to the correctly
defined rolebinding.
This commit is contained in:
Brandon Dimcheff
2018-04-25 21:48:21 -04:00
parent c776fa4c48
commit 45076a6a1f
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ local roleBinding = k.rbac.v1.roleBinding;
roleBinding.mixin.metadata.withName("kube-state-metrics") +
roleBinding.mixin.metadata.withNamespace(namespace) +
roleBinding.mixin.roleRef.withApiGroup("rbac.authorization.k8s.io") +
roleBinding.mixin.roleRef.withName("kube-state-metrics-addon-resizer") +
roleBinding.mixin.roleRef.withName("kube-state-metrics") +
roleBinding.mixin.roleRef.mixinInstance({kind: "Role"}) +
roleBinding.withSubjects([{kind: "ServiceAccount", name: "kube-state-metrics"}])
}

View File

@@ -6,7 +6,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kube-state-metrics-addon-resizer
name: kube-state-metrics
subjects:
- kind: ServiceAccount
name: kube-state-metrics