Skip to content

Commit 6bee65a

Browse files
rammanojrpotla
and
rpotla
authored
Disable service account when rbac disabled (#352)
* disable service account when rbac disabled * default keyword not detecting bool * address feedback * revert back to single line if --------- Co-authored-by: rpotla <[email protected]>
1 parent 31f2944 commit 6bee65a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

deploy/chart/templates/daemonset.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ spec:
1818
labels:
1919
app: ccm-linode
2020
spec:
21+
{{- if ne .Values.rbacEnabled false }}
2122
serviceAccountName: ccm-linode
23+
{{- end }}
2224
{{- with .Values.securityContext }}
2325
securityContext:
2426
{{- toYaml . | nindent 8 }}
@@ -35,7 +37,7 @@ spec:
3537
tolerations:
3638
{{- toYaml . | nindent 8 }}
3739
{{- end }}
38-
hostNetwork: {{ default true .Values.enableHostNetwork }}
40+
hostNetwork: {{ if hasKey .Values "enableHostNetwork" }}{{ .Values.enableHostNetwork }}{{ else }}true{{ end }}
3941
containers:
4042
- image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
4143
imagePullPolicy: {{ .Values.image.pullPolicy }}

deploy/chart/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ resources:
127127
# allowUnauthorizedMetrics: false
128128

129129
# enables host network
130-
# enableHostNetwork: false
130+
# enableHostNetwork: true
131131

132132
# specify the update strategy
133133
# updateStrategy:

0 commit comments

Comments
 (0)