Skip to content

Commit 0f5c8d6

Browse files
committed
fix: examples
Signed-off-by: David Sabatie <[email protected]>
1 parent 8664cdd commit 0f5c8d6

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

examples/app/templates/batch-job.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ spec:
2323
resources: {}
2424
nodeSelector: {{- toYaml .Values.batchJob.nodeSelector | nindent 8 }}
2525
restartPolicy: Never
26-
serviceAccountName: {{ default "default" (include "app.serviceAccountName"
27-
.) }}
26+
serviceAccountName: {{ include "app.serviceAccountName" . }}
2827
tolerations: {{- toYaml .Values.batchJob.tolerations | nindent 8 }}
2928
topologySpreadConstraints: {{- toYaml .Values.batchJob.topologySpreadConstraints
3029
| nindent 8 }}

examples/app/templates/cron-job.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ spec:
2424
resources: {}
2525
nodeSelector: {{- toYaml .Values.cronJob.nodeSelector | nindent 12 }}
2626
restartPolicy: OnFailure
27-
serviceAccountName: {{ default "default" (include "app.serviceAccountName"
28-
.) }}
27+
serviceAccountName: {{ include "app.serviceAccountName" . }}
2928
tolerations: {{- toYaml .Values.cronJob.tolerations | nindent 12 }}
3029
topologySpreadConstraints: {{- toYaml .Values.cronJob.topologySpreadConstraints
3130
| nindent 12 }}

examples/app/templates/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
name: varlibdockercontainers
3434
readOnly: true
3535
nodeSelector: {{- toYaml .Values.fluentdElasticsearch.nodeSelector | nindent 8 }}
36-
serviceAccountName: {{ default "default" (include "app.serviceAccountName" .) }}
36+
serviceAccountName: {{ include "app.serviceAccountName" . }}
3737
terminationGracePeriodSeconds: 30
3838
tolerations: {{- toYaml .Values.fluentdElasticsearch.tolerations | nindent 8 }}
3939
topologySpreadConstraints: {{- toYaml .Values.fluentdElasticsearch.topologySpreadConstraints

examples/app/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ spec:
9696
resources: {}
9797
nodeSelector: {{- toYaml .Values.myapp.nodeSelector | nindent 8 }}
9898
securityContext: {{- toYaml .Values.myapp.podSecurityContext | nindent 8 }}
99-
serviceAccountName: {{ default "default" (include "app.serviceAccountName" .) }}
99+
serviceAccountName: {{ include "app.serviceAccountName" . }}
100100
terminationGracePeriodSeconds: 10
101101
tolerations: {{- toYaml .Values.myapp.tolerations | nindent 8 }}
102102
topologySpreadConstraints: {{- toYaml .Values.myapp.topologySpreadConstraints | nindent

examples/app/templates/statefulset.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ spec:
3030
- mountPath: /usr/share/nginx/html
3131
name: www
3232
nodeSelector: {{- toYaml .Values.web.nodeSelector | nindent 8 }}
33-
serviceAccountName: {{ default "default" (include "app.serviceAccountName" .)
34-
}}
33+
serviceAccountName: {{ include "app.serviceAccountName" . }}
3534
tolerations: {{- toYaml .Values.web.tolerations | nindent 8 }}
3635
topologySpreadConstraints: {{- toYaml .Values.web.topologySpreadConstraints |
3736
nindent 8 }}

examples/operator/templates/deployment.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ spec:
9696
nodeSelector: {{- toYaml .Values.controllerManager.nodeSelector | nindent 8 }}
9797
securityContext: {{- toYaml .Values.controllerManager.podSecurityContext | nindent
9898
8 }}
99-
serviceAccountName: {{ default "default" (include "operator.serviceAccountName" .)
100-
}}
99+
serviceAccountName: {{ include "operator.serviceAccountName" . }}
101100
terminationGracePeriodSeconds: 10
102101
tolerations: {{- toYaml .Values.controllerManager.tolerations | nindent 8 }}
103102
topologySpreadConstraints: {{- toYaml .Values.controllerManager.topologySpreadConstraints

examples/operator/templates/serviceaccount.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ metadata:
55
name: {{ include "operator.serviceAccountName" . }}
66
labels:
77
{{- include "operator.labels" . | nindent 4 }}
8+
{{- with .Values.serviceAccount.annotations }}
89
annotations:
9-
{{- toYaml .Values.serviceAccount.annotations | nindent 4 }}
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
12+
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
1013
{{- end }}

examples/operator/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ secretVars:
9797
serviceAccount:
9898
annotations:
9999
k8s.acme.org/some-meta-data: ACME Inc.
100+
automount: true
100101
create: true
101102
name: ""
102103
webhookService:

0 commit comments

Comments
 (0)