apps/garage/resources/rbac/clusterrole.yaml
Peter Kurfer 9e43341646
All checks were successful
Renovate / renovate (push) Successful in 20s
feat(garage): initial deployment
2024-05-04 18:19:32 +02:00

23 lines
No EOL
617 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: garage-manage-crds
rules:
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get", "list", "watch", "create", "patch"]
- apiGroups: ["deuxfleurs.fr"]
resources: ["garagenodes"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: garage-allow-crds
subjects:
- kind: ServiceAccount
name: garage
roleRef:
kind: ClusterRole
name: garage-manage-crds
apiGroup: rbac.authorization.k8s.io