Removing daemonset permission from the charts (#201)

Signed-off-by: Raj <raj.das@mayadata.io>
This commit is contained in:
Raj Babu Das
2020-04-09 16:34:03 +05:30
committed by GitHub
parent 11cbd5d51a
commit 9745b57b1c
14 changed files with 12 additions and 21 deletions

View File

@@ -22,7 +22,6 @@ spec:
- "events"
- "pods/log"
- "pods/eviction"
- "daemonsets"
- "chaosengines"
- "chaosexperiments"
- "chaosresults"
@@ -68,4 +67,4 @@ spec:
value: ''
labels:
name: node-drain
name: node-drain

View File

@@ -41,4 +41,4 @@ spec:
icon:
- url: ""
mediatype: ""
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/node-drain/experiment.yaml
chaosexpcrdlink: https://raw.githubusercontent.com/litmuschaos/chaos-charts/master/charts/generic/node-drain/experiment.yaml

View File

@@ -15,7 +15,7 @@ metadata:
name: node-drain-sa
rules:
- apiGroups: ["","litmuschaos.io","batch","extensions"]
resources: ["pods","jobs","events","chaosengines","pods/log","daemonsets","pods/eviction","chaosexperiments","chaosresults"]
resources: ["pods","jobs","events","chaosengines","pods/log","pods/eviction","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update","delete"]
- apiGroups: [""]
resources: ["nodes"]
@@ -34,5 +34,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: node-drain-sa
namespace: default
namespace: default