Skip to content

Commit

Permalink
Allow imagePullSecret in operator helm chart
Browse files Browse the repository at this point in the history
Operator users may host the image in their own repositories, protected
by authentication.  Accept an imagePullSecret to facilitate these use
cases.
  • Loading branch information
gerlowskija committed Dec 12, 2024
1 parent ee1e3f3 commit e3a639d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/solr-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ The command removes all the Kubernetes components associated with the chart and
| image.repository | string | `"apache/solr-operator"` | The repository of the Solr Operator image |
| image.tag | string | `"v0.9.0-prerelease"` | The tag/version of the Solr Operator to run |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.imagePullSecret | string | `""` | PullSecret for the Solr Operator image |
| fullnameOverride | string | `""` | A custom name for the Solr Operator Deployment |
| nameOverride | string | `""` | |
| replicaCount | int | `1` | The number of Solr Operator pods to run |
Expand Down
3 changes: 3 additions & 0 deletions helm/solr-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.image.imagePullSecret }}
imagePullSecret: {{ .Values.image.imagePullSecret }}
{{- end }}
args:
{{- if or (index .Values "zookeeper-operator" "install") (index .Values "zookeeper-operator" "use") }}
- -zk-operator=true
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 @@ -23,6 +23,7 @@ image:
repository: apache/solr-operator
tag: v0.9.0-prerelease
pullPolicy: IfNotPresent
imagePullSecret: ""

nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit e3a639d

Please sign in to comment.