[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove option to disable rbac #244

Merged
merged 2 commits into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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