(refactor): Modify the Service Account names of the experiments (#145)

Signed-off-by: Udit Gaurav <uditgaurav@gmail.com>
This commit is contained in:
UDIT GAURAV
2020-02-15 00:15:40 +05:30
committed by GitHub
parent 7b710e3c2f
commit f4c7b188c7
42 changed files with 189 additions and 189 deletions

View File

@@ -14,7 +14,7 @@ spec:
appns: 'default'
applabel: 'app=percona'
appkind: 'deployment'
chaosServiceAccount: nginx-sa
chaosServiceAccount: target-pod-failure-sa
monitoring: false
# It can be delete/retain
jobCleanUpPolicy: 'delete'

View File

@@ -2,18 +2,18 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: nginx-sa
name: target-pod-failure-sa
namespace: default
labels:
name: nginx-sa
name: target-pod-failure-sa
---
# Source: openebs/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: nginx-sa
name: target-pod-failure-sa
labels:
name: nginx-sa
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"]
@@ -25,15 +25,15 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: nginx-sa
name: target-pod-failure-sa
labels:
name: nginx-sa
name: target-pod-failure-sa
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: nginx-sa
name: target-pod-failure-sa
subjects:
- kind: ServiceAccount
name: nginx-sa
name: target-pod-failure-sa
namespace: default