Skip to content

Commit 5d38f08

Browse files
RoiGlinikarikalon1
andauthored
ROB-2586 allow disable svc account (#1959)
* add option to disable runner service account * fix runner prefix * disable forwarder service account * add kubewatch createServiceAccount --------- Co-authored-by: arik <alon.arik@gmail.com>
1 parent 910f863 commit 5d38f08

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

helm/robusta/templates/forwarder-service-account.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.kubewatch.createServiceAccount }}
12
kind: ClusterRole
23
apiVersion: rbac.authorization.k8s.io/v1
34
metadata:
@@ -135,3 +136,4 @@ subjects:
135136
- kind: ServiceAccount
136137
name: {{ include "robusta.fullname" . }}-forwarder-service-account
137138
namespace: {{ .Release.Namespace }}
139+
{{- end }} # createServiceAccount

helm/robusta/templates/runner-service-account.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.runner.createServiceAccount }}
12
kind: ClusterRole
23
apiVersion: rbac.authorization.k8s.io/v1
34
metadata:
@@ -372,3 +373,4 @@ roleRef:
372373
kind: ClusterRole
373374
name: cluster-monitoring-view
374375
{{- end }}
376+
{{- end }} # runner.createServiceAccount

helm/robusta/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ kubewatch:
662662
readOnlyRootFilesystem: false
663663
runAsUser: 1000
664664
pod: {}
665+
createServiceAccount: true
665666
customServiceAccount: "" # to override the kubewatch service account
666667
serviceMonitor:
667668
path: /metrics
@@ -702,6 +703,7 @@ runner:
702703
sentry_dsn: https://4f1a66f025c60830fec303a094dcdf94@o1120648.ingest.sentry.io/6156573
703704
sendAdditionalTelemetry: false
704705
certificate: "" # base64 encoded
706+
createServiceAccount: true
705707
customServiceAccount: "" # to override the runner service account
706708
resources:
707709
requests:

0 commit comments

Comments
 (0)