(refactor): change the extension of rbac file in openebs pool network experiment (#150)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2020-02-15 16:53:25 +05:30
committed by GitHub
parent 43da83e8a2
commit 2da9162155
2 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: pool-network-delay-sa
namespace: openebs
labels:
name: pool-network-delay-sa
---
# Source: openebs/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: pool-network-delay-sa
labels:
name: pool-network-delay-sa
rules:
- apiGroups: ["","apps","litmuschaos.io","batch","extensions","storage.k8s.io","openebs.io"]
resources: ["pods","pods/exec","jobs","configmaps","services","persistentvolumeclaims","storageclasses","persistentvolumes","chaosengines","chaosexperiments","chaosresults","cstorpools","cstorvolumereplicas","replicasets"]
verbs: ["create","list","get","patch","update","delete"]
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: pool-network-delay-sa
labels:
name: pool-network-delay-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: pool-network-delay-sa
subjects:
- kind: ServiceAccount
name: pool-network-delay-sa
namespace: openebs