Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions helm/solr-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion helm/solr-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
5 changes: 4 additions & 1 deletion helm/solr-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions helm/solr-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ securityContext:
envVars: []
labels: {}
annotations: {}
podSecurityContext: {}
nodeSelector: {}
affinity: {}
tolerations: []
Expand Down
Loading