Skip to content

Commit 6379917

Browse files
authored
Merge pull request #24 from factorhouse/feature/FAC-823_disable-automount-of-api-credentials
Add automountServiceAccountToken value and default to false
2 parents 09514e9 + 41c96d3 commit 6379917

File tree

18 files changed

+48
-0
lines changed

18 files changed

+48
-0
lines changed

charts/flex-ce/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ spec:
2828
{{- toYaml . | nindent 8 }}
2929
{{- end }}
3030
serviceAccountName: {{ include "flex-ce.serviceAccountName" . }}
31+
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
3132
securityContext:
3233
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3334
containers:

charts/flex-ce/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@
167167
}
168168
}
169169
},
170+
"automountServiceAccountToken": {
171+
"type": "boolean"
172+
},
170173
"tolerations": {
171174
"type": "array"
172175
},

charts/flex-ce/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ serviceAccount:
2525
annotations: {}
2626
name: flex-ce
2727

28+
# Controls if the K8s API token should be mounted in the pod.
29+
# It is set on the Pod to ensure enforcement.
30+
automountServiceAccountToken: false
31+
2832
podAnnotations: {}
2933

3034
podSecurityContext: {}

charts/flex/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ spec:
2828
{{- toYaml . | nindent 8 }}
2929
{{- end }}
3030
serviceAccountName: {{ include "flex.serviceAccountName" . }}
31+
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
3132
securityContext:
3233
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3334
containers:

charts/flex/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@
167167
}
168168
}
169169
},
170+
"automountServiceAccountToken": {
171+
"type": "boolean"
172+
},
170173
"tolerations": {
171174
"type": "array"
172175
},

charts/flex/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ serviceAccount:
2525
annotations: {}
2626
name: flex
2727

28+
# Controls if the K8s API token should be mounted in the pod.
29+
# It is set on the Pod to ensure enforcement.
30+
automountServiceAccountToken: false
31+
2832
podAnnotations: {}
2933

3034
podSecurityContext: {}

charts/kpow-aws-annual/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ spec:
2828
{{- toYaml . | nindent 8 }}
2929
{{- end }}
3030
serviceAccountName: {{ include "kpow.serviceAccountName" . }}
31+
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
3132
securityContext:
3233
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3334
containers:

charts/kpow-aws-annual/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@
210210
}
211211
}
212212
},
213+
"automountServiceAccountToken": {
214+
"type": "boolean"
215+
},
213216
"tolerations": {
214217
"type": "array"
215218
},

charts/kpow-aws-annual/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ serviceAccount:
4141
annotations: {}
4242
name: kpow
4343

44+
# Controls if the K8s API token should be mounted in the pod.
45+
# It is set on the Pod to ensure enforcement.
46+
automountServiceAccountToken: false
47+
4448
podAnnotations: {}
4549

4650
podSecurityContext: {}

charts/kpow-aws-hourly/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ spec:
2828
{{- toYaml . | nindent 8 }}
2929
{{- end }}
3030
serviceAccountName: {{ include "kpow.serviceAccountName" . }}
31+
automountServiceAccountToken: {{ .Values.automountServiceAccountToken }}
3132
securityContext:
3233
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3334
containers:

0 commit comments

Comments
 (0)