Merge pull request 'Grant deployer StatefulSet rights, for apps with persistent storage' (#2) from toolshed-statefulset-rbac into main
Reviewed-on: http://gitea.100.90.248.118.nip.io/mukul/devops-infra-argo-config/pulls/2
This commit is contained in:
@@ -57,6 +57,19 @@ rules:
|
|||||||
- apiGroups: ["apps"]
|
- apiGroups: ["apps"]
|
||||||
resources: ["deployments"]
|
resources: ["deployments"]
|
||||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
|
# An app with persistent storage is a StatefulSet instead of a Deployment
|
||||||
|
# (internal/deploy.Client.ensureStatefulSet). Delete is needed on both:
|
||||||
|
# switching an app between stateless and stateful must remove whichever
|
||||||
|
# controller it no longer is, or the two fight over the same pods.
|
||||||
|
- apiGroups: ["apps"]
|
||||||
|
resources: ["statefulsets"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
|
# Read-only. The claims themselves are created by the StatefulSet's own
|
||||||
|
# volumeClaimTemplates, never directly here — this is only to observe
|
||||||
|
# them, and deleting one would destroy an app's data.
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["persistentvolumeclaims"]
|
||||||
|
verbs: ["get", "list", "watch"]
|
||||||
# The policy that stops one app reaching another.
|
# The policy that stops one app reaching another.
|
||||||
- apiGroups: ["networking.k8s.io"]
|
- apiGroups: ["networking.k8s.io"]
|
||||||
resources: ["networkpolicies"]
|
resources: ["networkpolicies"]
|
||||||
|
|||||||
Reference in New Issue
Block a user