Skip to content

Commit 049461c

Browse files
brophyjaJames Brophyalespour
authored
fix(influxdb3-ent): apply container securityContext to all StatefulSets (#763)
* fix(influxdb3-ent): apply container securityContext to all StatefulSets * chore: bump chart version * chore: add securityContext placeholders --------- Co-authored-by: James Brophy <jbrophy@cm-green.bcloud.apcoe2.boeing.com> Co-authored-by: Ales Pour <ales.pour@bonitoo.io>
1 parent da54c1d commit 049461c

File tree

5 files changed

+22
-1
lines changed

5 files changed

+22
-1
lines changed

charts/influxdb3-enterprise/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: influxdb3-enterprise
33
description: A Helm chart for deploying InfluxDB 3 Enterprise on Kubernetes
44
type: application
5-
version: 0.1.1
5+
version: 0.1.2
66
appVersion: "3.6.0"
77
keywords:
88
- influxdb

charts/influxdb3-enterprise/templates/compactor-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ spec:
5151
{{- toYaml .Values.compactor.podSecurityContext | nindent 8 }}
5252
containers:
5353
- name: influxdb3
54+
{{- with .Values.compactor.securityContext }}
55+
securityContext:
56+
{{- toYaml . | nindent 12 }}
57+
{{- end }}
5458
image: {{ include "influxdb3-enterprise.image" . }}
5559
imagePullPolicy: {{ .Values.image.pullPolicy }}
5660
command:

charts/influxdb3-enterprise/templates/ingester-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ spec:
4646
{{- toYaml .Values.ingester.podSecurityContext | nindent 8 }}
4747
containers:
4848
- name: influxdb3
49+
{{- with .Values.ingester.securityContext }}
50+
securityContext:
51+
{{- toYaml . | nindent 12 }}
52+
{{- end }}
4953
image: {{ include "influxdb3-enterprise.image" . }}
5054
imagePullPolicy: {{ .Values.image.pullPolicy }}
5155
command:

charts/influxdb3-enterprise/templates/querier-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ spec:
4646
{{- toYaml .Values.querier.podSecurityContext | nindent 8 }}
4747
containers:
4848
- name: influxdb3
49+
{{- with .Values.querier.securityContext }}
50+
securityContext:
51+
{{- toYaml . | nindent 12 }}
52+
{{- end }}
4953
image: {{ include "influxdb3-enterprise.image" . }}
5054
imagePullPolicy: {{ .Values.image.pullPolicy }}
5155
command:

charts/influxdb3-enterprise/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ ingester:
227227
runAsUser: 1500 # Run as influxdb3 user
228228
runAsGroup: 1500 # Run as influxdb3 group
229229

230+
# Container-level security context (optional override)
231+
securityContext: {}
232+
230233
# Service configuration
231234
service:
232235
type: ClusterIP
@@ -306,6 +309,9 @@ querier:
306309
runAsUser: 1500 # Run as influxdb3 user
307310
runAsGroup: 1500 # Run as influxdb3 group
308311

312+
# Container-level security context (optional override)
313+
securityContext: {}
314+
309315
# Service configuration
310316
service:
311317
type: ClusterIP
@@ -389,6 +395,9 @@ compactor:
389395
runAsUser: 1500 # Run as influxdb3 user
390396
runAsGroup: 1500 # Run as influxdb3 group
391397

398+
# Container-level security context (optional override)
399+
securityContext: {}
400+
392401
# Service configuration (for metrics only)
393402
service:
394403
type: ClusterIP

0 commit comments

Comments
 (0)