Skip to content

Commit 6bcf065

Browse files
feat(argus,csc): support for custom serviceaccount
1 parent 1a22c63 commit 6bcf065

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

charts/argus/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ maintainers:
66
- email: argus@logicmonitor.com
77
name: LogicMonitor
88
name: argus
9-
version: 14.1.0-rt01
9+
version: 14.1.1-rc01
1010
home: https://logicmonitor.github.io/helm-charts-qa
1111
appVersion: v17.3.1-rt01
1212
dependencies:

charts/argus/templates/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.serviceAccount.create -}}
1+
{{- if eq (include "lmutil.shouldCreateServiceAccount" .) "true" -}}
22
{{- if ne (include "lmutil.serviceAccountName" .) "default" -}}
33
apiVersion: v1
44
kind: ServiceAccount

charts/collectorset-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ maintainers:
66
- email: argus@logicmonitor.com
77
name: LogicMonitor
88
name: collectorset-controller
9-
version: 12.2.0-rt01
9+
version: 12.2.1-rc01
1010
home: https://logicmonitor.github.io/helm-charts-qa
1111
appVersion: v13.3.0-rt01
1212
dependencies:

charts/collectorset-controller/templates/serviceaccount.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- if and .Values.serviceAccount.create (ne (include "lmutil.serviceAccountName" .) "default") -}}
1+
{{- $globalSAConfigured := and .Values.global .Values.global.serviceAccount .Values.global.serviceAccount.name -}}
2+
{{- if and (eq (include "lmutil.shouldCreateServiceAccount" .) "true") (ne (include "lmutil.serviceAccountName" .) "default") -}}
23
apiVersion: v1
34
kind: ServiceAccount
45
metadata:
@@ -11,11 +12,9 @@ metadata:
1112
imagePullSecrets:
1213
{{- include "lmutil.imagePullSecrets" . | nindent 2 }}
1314
{{- end }}
14-
15+
{{- if and .Values.serviceAccount.collector.create (ne (include "lmutil.serviceAccountName" .) "default") (not $globalSAConfigured) }}
1516
---
16-
17-
# ServiceAccount for collector, only if both serviceAccount.collector.name and global.serviceAccount.name are not set
18-
{{ if and .Values.serviceAccount.collector.create (ne (include "lmutil.serviceAccountName" .) "default") -}}
17+
# ServiceAccount for collector
1918
apiVersion: v1
2019
kind: ServiceAccount
2120
metadata:

0 commit comments

Comments
 (0)