This is an automated email from the ASF dual-hosted git repository.

HoustonPutman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 01e4bf3  Add support for pod securityContext configuration to operator 
helm chart (#818)
01e4bf3 is described below

commit 01e4bf3176d5b7fa3a10acbe81472cb96ce79818
Author: Yann Rosema <[email protected]>
AuthorDate: Thu Jun 18 20:08:39 2026 +0200

    Add support for pod securityContext configuration to operator helm chart 
(#818)
---
 helm/solr-operator/Chart.yaml                | 7 +++++++
 helm/solr-operator/README.md                 | 3 ++-
 helm/solr-operator/templates/deployment.yaml | 5 ++++-
 helm/solr-operator/values.yaml               | 1 +
 4 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/helm/solr-operator/Chart.yaml b/helm/solr-operator/Chart.yaml
index e445ad6..a95c838 100644
--- a/helm/solr-operator/Chart.yaml
+++ b/helm/solr-operator/Chart.yaml
@@ -117,6 +117,13 @@ annotations:
           url: https://github.com/apache/solr-operator/issues/797
         - name: Github PR
           url: https://github.com/apache/solr-operator/pull/796
+    - kind: added
+      description: Add option for Pod SecurityContext in the Solr-Operator 
Helm chart
+      links:
+        - name: Github Issue
+          url: https://github.com/apache/solr-operator/issues/817
+        - name: Github PR
+          url: https://github.com/apache/solr-operator/pull/818
   artifacthub.io/images: |
     - name: solr-operator
       image: apache/solr-operator:v0.10.0-prerelease
diff --git a/helm/solr-operator/README.md b/helm/solr-operator/README.md
index 1a56ee9..50a3424 100644
--- a/helm/solr-operator/README.md
+++ b/helm/solr-operator/README.md
@@ -183,7 +183,8 @@ The command removes all the Kubernetes components 
associated with the chart and
 | serviceAccount.name | string | `""` | If `serviceAccount.create` is set to 
`false`, the name of an existing serviceAccount in the target namespace 
**must** be provided to run the Solr Operator with. This serviceAccount with be 
given the operator's RBAC rules. |
 | resources.limits | map[string]string |  | Provide Resource limits for the 
Solr Operator container |
 | resources.requests | map[string]string |  | Provide Resource requests for 
the Solr Operator container |
-| securityContext | object | `allowPrivilegeEscalation: false, runAsNonRoot: 
true` | Provide security context for the Solr Operator container |
+| securityContext | object | `allowPrivilegeEscalation: false, runAsNonRoot: 
true` | Provide a security context for the Solr Operator container |
+| podSecurityContext | object | | Provide a security context for the Solr 
Operator pod |
 | labels | map[string]string |  | Custom labels to add to the Solr Operator 
pod |
 | annotations | map[string]string |  | Custom annotations to add to the Solr 
Operator pod |
 | nodeSelector | map[string]string |  | Add a node selector for the Solr 
Operator pod, to specify where it can be scheduled |
diff --git a/helm/solr-operator/templates/deployment.yaml 
b/helm/solr-operator/templates/deployment.yaml
index fe19965..7541371 100644
--- a/helm/solr-operator/templates/deployment.yaml
+++ b/helm/solr-operator/templates/deployment.yaml
@@ -134,7 +134,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 efdbe0a..3a293e3 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: []

Reply via email to