Files
litmus-hub/charts/openebs/openebs-target-pod-failure/rbac.yaml
Shubham Chaudhary 03e8aa5000 (fix): fixing the rbac of target pod failure exp (#152)
* (fix): fixing the rbac of target pod failure exp

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>

* (fix): fixing the indentation for infra exp

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
2020-02-15 20:56:07 +05:30

40 lines
1.1 KiB
YAML

---
apiVersion: v1
kind: ServiceAccount
metadata:
name: target-pod-failure-sa
namespace: default
labels:
name: target-pod-failure-sa
---
# Source: openebs/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: target-pod-failure-sa
labels:
name: target-pod-failure-sa
rules:
- apiGroups: ["","apps","litmuschaos.io","batch","extensions","storage.k8s.io"]
resources: ["pods","jobs","deployments","pods/exec","chaosexperiments","chaosresults","chaosengines","configmaps","secrets","services","persistentvolumeclaims","storageclasses","persistentvolumes"]
verbs: ["create","list","get","patch","update","delete"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get","list"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: target-pod-failure-sa
labels:
name: target-pod-failure-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: target-pod-failure-sa
subjects:
- kind: ServiceAccount
name: target-pod-failure-sa
namespace: default