diff --git a/helm/solr-operator/templates/deployment.yaml b/helm/solr-operator/templates/deployment.yaml index 1c13fae4..98242913 100644 --- a/helm/solr-operator/templates/deployment.yaml +++ b/helm/solr-operator/templates/deployment.yaml @@ -133,7 +133,10 @@ spec: volumes: {{- include "solr-operator.mTLS.volumes" . | nindent 8 }} {{- end }} - + {{- with .Values.podSecurityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end -}} {{- if .Values.sidecarContainers }} {{ toYaml .Values.sidecarContainers | nindent 6 }} {{- end }} diff --git a/helm/solr-operator/values.yaml b/helm/solr-operator/values.yaml index efdbe0a0..3a293e3f 100644 --- a/helm/solr-operator/values.yaml +++ b/helm/solr-operator/values.yaml @@ -84,6 +84,7 @@ securityContext: envVars: [] labels: {} annotations: {} +podSecurityContext: {} nodeSelector: {} affinity: {} tolerations: []