Skip to content

Commit

Permalink
CU-86c0fwhr0 - feat: allow not creating rbac at all (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbenator authored Sep 30, 2024
2 parents cc77431 + 92d4296 commit 15a6645
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/komodor-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ The command removes all the Kubernetes components associated with the chart and
| createNamespace | bool | `true` | Creates the namespace |
| tags | dict | `{}` | Tags the agent in order to identify it based on `key:value` properties separated by semicolon (`;`) example: `--set tags.env=staging,tags.team=payments` --- Can also be set in the values under `tags` as a dictionary of key:value strings |
| clusterName | string | `nil` | **(*required*)** Name to be displayed in the Komodor web application |
| createRbac | bool | `true` | Creates the necessary RBAC resources for the agent - use with caution! |
| telegrafImageVersion | string | `"1.31.3-alpine-v1"` | Telegraf version to be used |
| telegrafWindowsImageVersion | string | `"1.31.0-v1"` | Telegraf version to be used for windows |
| networkMapperImageVersion | string | `"v1.0.3"` | Network mapper version to be used |
Expand Down
3 changes: 2 additions & 1 deletion charts/komodor-agent/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
{{- if .Values.createRbac -}}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
Expand Down Expand Up @@ -519,3 +519,4 @@ subjects:
- kind: ServiceAccount
name: {{ include "komodorAgent.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end -}}
2 changes: 2 additions & 0 deletions charts/komodor-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ createNamespace: true
tags: { }
# clusterName -- **(*required*)** Name to be displayed in the Komodor web application
clusterName:
# createRbac -- Creates the necessary RBAC resources for the agent - use with caution!
createRbac: true

# telegrafImageVersion -- (string) Telegraf version to be used
telegrafImageVersion: &telegrafVersion 1.31.3-alpine-v1
Expand Down

0 comments on commit 15a6645

Please sign in to comment.