Skip to content

Commit

Permalink
Allow imagePullSecrets to be specified in values.yaml (#55)
Browse files Browse the repository at this point in the history
* Add option to specify image pull secrets

* Render imagePullSecrets when specified

* Bump chart version

* Indent list to follow the repo style
  • Loading branch information
htolic authored Oct 9, 2024
1 parent 29ec64c commit e867da3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/cert-manager-webhook-pdns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: cert-manager-webhook-pdns
version: 3.2.0
version: 3.2.1
description: Cert Manager Webhook for PowerDNS.
type: application
home: https://github.com/zachomedia/cert-manager-webhook-pdns
Expand Down
3 changes: 3 additions & 0 deletions deploy/cert-manager-webhook-pdns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
Expand Down
5 changes: 5 additions & 0 deletions deploy/cert-manager-webhook-pdns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ image:
# tag: latest
pullPolicy: IfNotPresent

# -- Optional array of imagePullSecrets containing private registry credentials
## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
# - name: secretName

nameOverride: ""
fullnameOverride: ""

Expand Down

0 comments on commit e867da3

Please sign in to comment.