diff --git a/charts/jaeger/Chart.yaml b/charts/jaeger/Chart.yaml index 582770d3..a0e637e9 100644 --- a/charts/jaeger/Chart.yaml +++ b/charts/jaeger/Chart.yaml @@ -3,7 +3,7 @@ appVersion: 1.53.0 description: A Jaeger Helm chart for Kubernetes name: jaeger type: application -version: 3.1.2 +version: 3.1.3 # CronJobs require v1.21 kubeVersion: ">= 1.21-0" keywords: diff --git a/charts/jaeger/templates/spark-cronjob.yaml b/charts/jaeger/templates/spark-cronjob.yaml index c1f60eeb..f58efa8f 100644 --- a/charts/jaeger/templates/spark-cronjob.yaml +++ b/charts/jaeger/templates/spark-cronjob.yaml @@ -38,6 +38,8 @@ spec: spec: serviceAccountName: {{ template "jaeger.spark.serviceAccountName" . }} {{- include "spark.imagePullSecrets" . | nindent 10 }} + securityContext: + {{- toYaml .Values.spark.podSecurityContext | nindent 12 }} containers: - name: {{ include "jaeger.fullname" . }}-spark image: {{ include "spark.image" . }} @@ -76,6 +78,8 @@ spec: subPath: {{ .subPath }} readOnly: {{ .readOnly }} {{- end }} + securityContext: + {{- toYaml .Values.spark.securityContext | nindent 14 }} restartPolicy: OnFailure volumes: {{- range .Values.spark.extraConfigmapMounts }} diff --git a/charts/jaeger/values.yaml b/charts/jaeger/values.yaml index 9cf04128..096133da 100644 --- a/charts/jaeger/values.yaml +++ b/charts/jaeger/values.yaml @@ -790,6 +790,8 @@ query: spark: enabled: false + securityContext: {} + podSecurityContext: {} annotations: {} image: registry: ""