Skip to content

Commit

Permalink
Expose in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlowskija committed Jan 7, 2025
1 parent 2c4bd3e commit e6b6a5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/solr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ When using the helm chart, omit `customSolrKubeOptions.`
| podOptions.initContainers | []object | | An optional list of additional initContainers to run before the Solr container starts |
| podOptions.envVars | []object | | List of additional environment variables for the Solr container |
| podOptions.podSecurityContext | object | | Security context for the Solr pod |
| podOptions.containerSecurityContext | object | | Security context for the Solr container in each pod |
| podOptions.terminationGracePeriodSeconds | int | | Optional amount of time to wait for Solr to stop on its own, before manually killing it |
| podOptions.livenessProbe | object | | Custom liveness probe for the Solr container |
| podOptions.readinessProbe | object | | Custom readiness probe for the Solr container |
Expand Down
4 changes: 4 additions & 0 deletions helm/solr/templates/_custom_option_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ nodeSelector:
podSecurityContext:
{{- toYaml .Values.podOptions.podSecurityContext | nindent 2 }}
{{ end }}
{{- if .Values.podOptions.containerSecurityContext -}}
containerSecurityContext:
{{- toYaml .Values.podOptions.containerSecurityContext | nindent 2 }}
{{ end }}
{{- if (or .Values.podOptions.imagePullSecrets .Values.global.imagePullSecrets) -}}
imagePullSecrets:
{{- toYaml (append .Values.podOptions.imagePullSecrets .Values.global.imagePullSecrets) | nindent 2 }}
Expand Down
1 change: 1 addition & 0 deletions helm/solr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ podOptions:
priorityClassName: ""
envVars: []
podSecurityContext: {}
containerSecurityContext: {}
terminationGracePeriodSeconds: null

# Set Solr service account individually instead of the global "serviceAccount.name"
Expand Down

0 comments on commit e6b6a5d

Please sign in to comment.