add missing permission to get namespaces to garm
This commit is contained in:
@@ -27,3 +27,25 @@ roleRef:
|
|||||||
kind: Role
|
kind: Role
|
||||||
name: garm-provider-k8s
|
name: garm-provider-k8s
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: garm-namespace-manager
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["namespaces"]
|
||||||
|
verbs: ["get"]
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: garm-namespace-manager
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: garm
|
||||||
|
namespace: garm
|
||||||
|
roleRef:
|
||||||
|
kind: ClusterRole
|
||||||
|
name: garm-namespace-manager
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|||||||
Reference in New Issue
Block a user