Make role and binding namespaced.
This commit is contained in:
parent
c65c0f979b
commit
02b5cd588d
2 changed files with 3 additions and 3 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: vm-operator
|
name: vm-operator
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: vm-operator
|
app.kubernetes.io/name: vm-operator
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: Role
|
||||||
name: vm-operator
|
name: vm-operator
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: vm-operator
|
name: vm-operator
|
||||||
labels:
|
labels:
|
||||||
Loading…
Add table
Add a link
Reference in a new issue