diff --git a/chart/templates/api/deployment.yaml b/chart/templates/api/deployment.yaml index 1be6e3c6..7a9b5b60 100644 --- a/chart/templates/api/deployment.yaml +++ b/chart/templates/api/deployment.yaml @@ -38,7 +38,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.global.securityContext }} + {{- with (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.api.securityContext) }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/chart/templates/auth/deployment.yaml b/chart/templates/auth/deployment.yaml index 15e92357..29fa5e2f 100644 --- a/chart/templates/auth/deployment.yaml +++ b/chart/templates/auth/deployment.yaml @@ -38,7 +38,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.global.securityContext }} + {{- with (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.auth.securityContext) }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/chart/templates/front/deployment.yaml b/chart/templates/front/deployment.yaml index eea984c0..b6f62a8d 100644 --- a/chart/templates/front/deployment.yaml +++ b/chart/templates/front/deployment.yaml @@ -38,7 +38,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.global.securityContext }} + {{- with (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.front.securityContext) }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/chart/templates/scanner/deployment.yaml b/chart/templates/scanner/deployment.yaml index 88fe88db..af432bb3 100644 --- a/chart/templates/scanner/deployment.yaml +++ b/chart/templates/scanner/deployment.yaml @@ -38,7 +38,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.global.securityContext }} + {{- with (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.scanner.securityContext) }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/chart/templates/traefikproxy/deployment.yaml b/chart/templates/traefikproxy/deployment.yaml index 34c8178f..7ca548f5 100644 --- a/chart/templates/traefikproxy/deployment.yaml +++ b/chart/templates/traefikproxy/deployment.yaml @@ -39,7 +39,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.global.securityContext }} + {{- with (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.traefikproxy.securityContext) }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/chart/templates/transcoder/deployment.yaml b/chart/templates/transcoder/deployment.yaml index cce5f9a5..29d9a32d 100644 --- a/chart/templates/transcoder/deployment.yaml +++ b/chart/templates/transcoder/deployment.yaml @@ -48,7 +48,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - {{- with .Values.global.securityContext }} + {{- with (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.transcoder.securityContext) }} securityContext: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index 3a640e4d..90da66de 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -210,6 +210,7 @@ api: # default to recreate for better user experience with ReadWriteOnce volumes updateStrategy: type: Recreate + securityContext: {} podLabels: {} deploymentAnnotations: {} podAnnotations: {} @@ -260,6 +261,7 @@ auth: tag: ~ replicaCount: 1 updateStrategy: ~ + securityContext: {} podLabels: {} deploymentAnnotations: {} podAnnotations: {} @@ -294,6 +296,7 @@ front: tag: ~ replicaCount: 1 updateStrategy: ~ + securityContext: {} podLabels: {} deploymentAnnotations: {} podAnnotations: {} @@ -335,6 +338,7 @@ scanner: # scanner does not support multiple replicas replicaCount: 1 updateStrategy: ~ + securityContext: {} podLabels: {} deploymentAnnotations: {} podAnnotations: {} @@ -395,6 +399,7 @@ transcoder: # default to recreate for better user experience with ReadWriteOnce volumes & hardware resources updateStrategy: type: Recreate + securityContext: {} podLabels: {} deploymentAnnotations: {} podAnnotations: {} @@ -458,6 +463,7 @@ traefikproxy: tag: v3.6.10 replicaCount: 1 updateStrategy: ~ + securityContext: {} podLabels: {} configmapAnnotations: {} deploymentAnnotations: {}