diff --git a/helm-charts/seldon-core-operator/templates/controller.yaml b/helm-charts/seldon-core-operator/templates/controller.yaml index 633e55bc55..0417dffc54 100644 --- a/helm-charts/seldon-core-operator/templates/controller.yaml +++ b/helm-charts/seldon-core-operator/templates/controller.yaml @@ -199,8 +199,10 @@ spec: value: {{ .Values.engine.image.pullPolicy }} - name: ENGINE_CONTAINER_SERVICE_ACCOUNT_NAME value: {{ .Values.engine.serviceAccount.name }} + {{- if .Values.engine.securityContext.enabled }} - name: ENGINE_CONTAINER_USER value: '{{ .Values.engine.user }}' + {{- end }} - name: PREDICTIVE_UNIT_SERVICE_PORT value: '{{ .Values.predictiveUnit.port }}' - name: ENGINE_SERVER_GRPC_PORT diff --git a/helm-charts/seldon-core-operator/values.yaml b/helm-charts/seldon-core-operator/values.yaml index 1d710c2069..d74bfb521d 100644 --- a/helm-charts/seldon-core-operator/values.yaml +++ b/helm-charts/seldon-core-operator/values.yaml @@ -16,6 +16,8 @@ engine: path: prometheus serviceAccount: name: default + securityContext: + enabled: true user: 8888 image: pullPolicy: IfNotPresent