Skip to content

Commit

Permalink
Remove option to disable rbac (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
worldtiki authored Dec 23, 2022
1 parent a034c94 commit a4db3ee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions helm/kubemonkey/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ $ helm get manifest my-release
| `image.repository` | docker image repo | ayushsobti/kube-monkey |
| `image.tag` | docker image tag | v0.4.1 |
| `replicaCount` | number of replicas to run | 1 |
| `rbac.enabled` | rbac enabled or not | true |
| `image.pullPolicy` | image pull logic | IfNotPresent |
| `config.dryRun` | will not kill pods, only logs behaviour | true |
| `config.runHour` | schedule start time in 24hr format | 8 |
Expand All @@ -126,8 +125,6 @@ example of a modified values.yaml (only important parts are displayed)
```yaml
...
replicaCount: 1
rbac:
enabled: true
image:
repository: ayushsobti/kube-monkey
tag: v0.4.1
Expand Down
8 changes: 0 additions & 8 deletions helm/kubemonkey/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.rbac.enabled -}}
{{- if .Values.serviceAccount }}
{{- if not .Values.serviceAccount.name }}
apiVersion: v1
Expand All @@ -8,13 +7,9 @@ metadata:
namespace: {{ .Release.Namespace }}
{{- end}}
{{- end}}
{{- end}}

---

---

{{- if .Values.rbac.enabled }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down Expand Up @@ -54,11 +49,9 @@ rules:
- "list"
- "watch"
- "delete"
{{- end}}

---

{{- if .Values.rbac.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -72,4 +65,3 @@ subjects:
- kind: ServiceAccount
name: {{ include "kubemonkey.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end -}}
3 changes: 0 additions & 3 deletions helm/kubemonkey/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ serviceAccount:
# If set, an existing Service Account is used. Else a Service Account is created automatically
name: ""

rbac:
enabled: true

image:
repository: ayushsobti/kube-monkey
tag: v0.5.1
Expand Down

0 comments on commit a4db3ee

Please sign in to comment.