Skip to content

Commit fb512b8

Browse files
committed
Fix for AWS ServiceAccount (see kubernetes-sigs/external-dns#1185)
1 parent c19f074 commit fb512b8

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

snyk-monitor/templates/deployment.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
{{- toYaml . | nindent 8 }}
2828
{{- end }}
2929
spec:
30+
{{- if ne .Values.securityContext.fsGroup "" }}
31+
securityContext:
32+
fsGroup: 65534
33+
{{- end }}
3034
affinity:
3135
nodeAffinity:
3236
requiredDuringSchedulingIgnoredDuringExecution:
@@ -172,6 +176,13 @@ spec:
172176
name: {{ .Values.defaultWorkloadPoliciesMap }}
173177
{{- end }}
174178
optional: true
179+
{{- if .Values.volumes.projected.serviceAccountToken }}
180+
- name: token-vol
181+
projected:
182+
sources:
183+
- serviceAccountToken:
184+
path: token
185+
{{- end }}
175186
- name: registries-conf
176187
configMap:
177188
name: {{ .Values.registriesConfConfigMap }}

snyk-monitor/values.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,18 @@ psp:
108108

109109
# Override the excluded namespaces
110110
excludedNamespaces:
111+
112+
# Allow specifying a fsGroup in
113+
# spec:
114+
# template:
115+
# spec:
116+
# securityContext:
117+
# fsGroup: 65534 <-- here
118+
securityContext:
119+
fsGroup: ""
120+
121+
# A projected volume maps several existing volume sources into the same directory.
122+
# https://kubernetes.io/docs/concepts/storage/volumes/#projected
123+
volumes:
124+
projected:
125+
serviceAccountToken: false

0 commit comments

Comments
 (0)