Skip to content

Commit

Permalink
feat: ability to pull from your own docker registry using a secret (#…
Browse files Browse the repository at this point in the history
…14686)

* feature: ability to pull from your own docker registry using a secret

* feature: ability to pull from your own docker registry using a secret

* fix: formating

* fix: formating

* use secret for all deployments and jobs that use the helm chart

* update chart version number

Co-authored-by: jaisheel <[email protected]>
  • Loading branch information
jmistry and jaisheel authored May 26, 2021
1 parent 4502086 commit 9fe0222
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/superset/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda
email: [email protected]
url: https://github.com/craig-rueda
version: 0.1.2
version: 0.1.3
dependencies:
- name: postgresql
version: 10.2.0
Expand Down
4 changes: 4 additions & 0 deletions helm/superset/templates/deployment-beat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ spec:
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
volumes:
- name: superset-config
secret:
Expand Down
4 changes: 4 additions & 0 deletions helm/superset/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ spec:
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
volumes:
- name: superset-config
secret:
Expand Down
5 changes: 5 additions & 0 deletions helm/superset/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ spec:
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}

volumes:
- name: superset-config
secret:
Expand Down
4 changes: 4 additions & 0 deletions helm/superset/templates/init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ spec:
command: {{ tpl (toJson .Values.init.command) . }}
resources:
{{ toYaml .Values.init.resources | indent 10 }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
volumes:
- name: superset-config
secret:
Expand Down
3 changes: 3 additions & 0 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ image:
tag: latest
pullPolicy: IfNotPresent

imagePullSecrets: []


service:
type: ClusterIP
port: 8088
Expand Down

0 comments on commit 9fe0222

Please sign in to comment.