Skip to content

Commit 3060749

Browse files
[jaeger] Add securityContext for spark cron job (#587)
Signed-off-by: Andreas Seelinger <Andreas.Seelinger@accenture.com> Signed-off-by: Pavel Nikolov <pavelnikolov@users.noreply.github.com> Co-authored-by: Pavel Nikolov <pavelnikolov@users.noreply.github.com>
1 parent 26e6439 commit 3060749

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

charts/jaeger/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: 1.53.0
33
description: A Jaeger Helm chart for Kubernetes
44
name: jaeger
55
type: application
6-
version: 3.1.2
6+
version: 3.1.3
77
# CronJobs require v1.21
88
kubeVersion: ">= 1.21-0"
99
keywords:

charts/jaeger/templates/spark-cronjob.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ spec:
3838
spec:
3939
serviceAccountName: {{ template "jaeger.spark.serviceAccountName" . }}
4040
{{- include "spark.imagePullSecrets" . | nindent 10 }}
41+
securityContext:
42+
{{- toYaml .Values.spark.podSecurityContext | nindent 12 }}
4143
containers:
4244
- name: {{ include "jaeger.fullname" . }}-spark
4345
image: {{ include "spark.image" . }}
@@ -76,6 +78,8 @@ spec:
7678
subPath: {{ .subPath }}
7779
readOnly: {{ .readOnly }}
7880
{{- end }}
81+
securityContext:
82+
{{- toYaml .Values.spark.securityContext | nindent 14 }}
7983
restartPolicy: OnFailure
8084
volumes:
8185
{{- range .Values.spark.extraConfigmapMounts }}

charts/jaeger/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,8 @@ query:
790790

791791
spark:
792792
enabled: false
793+
securityContext: {}
794+
podSecurityContext: {}
793795
annotations: {}
794796
image:
795797
registry: ""

0 commit comments

Comments
 (0)