Ver Fonte

Corrected securityCOntext for pod

Signed-off-by: Andrew Block <andy.block@gmail.com>
Andrew Block há 4 anos atrás
pai
commit
de4e9af7f5

+ 1 - 1
charts/openshift-console-plugin/templates/patch-consoles-job.yaml

@@ -26,7 +26,7 @@ spec:
       containers:
         - name: {{ template "openshift-console-plugin.patcherName" . }}
           image: {{ required "Patcher image must be specified!" .Values.plugin.jobs.patchConsoles.image }}
-          {{- if  and (.Values.plugin.disableSecurityContext) (.Values.plugin.jobs.patchConsoles.containerSecurityContext.enabled) }}
+          {{- if and (.Values.plugin.securityContext.enabled) (.Values.plugin.containerSecurityContext) }}
           securityContext: {{ tpl (toYaml (omit .Values.plugin.jobs.patchConsoles.containerSecurityContext "enabled")) $ | nindent 12 }}
           {{- end }}
           resources: