From 2403ba3aac90ce466c1c7dc423808afbfc7b4686 Mon Sep 17 00:00:00 2001 From: Yann Rosema Date: Wed, 11 Feb 2026 14:01:45 +0100 Subject: [PATCH] add support for pod security context configuration to operator helm chart --- helm/solr-operator/templates/deployment.yaml | 5 ++++- helm/solr-operator/values.yaml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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: []