diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 45bbeef..4c26f41 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -29,6 +29,9 @@ spec: template: metadata: labels: + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- include "pgdog.selectorLabels" . | nindent 8 }} {{- if or .Values.restartOnConfigChange .Values.podAnnotations }} annotations: @@ -53,6 +56,10 @@ spec: initContainers: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: pgdog {{- if .Values.image.name }} diff --git a/templates/secrets.yaml b/templates/secrets.yaml index 45d7076..fa33671 100644 --- a/templates/secrets.yaml +++ b/templates/secrets.yaml @@ -38,6 +38,9 @@ read_only = {{ .readOnly }} {{- if .serverLifetime }} server_lifetime = {{ .serverLifetime }} {{- end }} +{{- if .serverAuth }} +server_auth = {{ .serverAuth | quote }} +{{- end }} {{- end }} {{- end -}} diff --git a/values.yaml b/values.yaml index 7d33c5e..9fb3ef6 100644 --- a/values.yaml +++ b/values.yaml @@ -16,6 +16,8 @@ selectorLabels: {} # allows adding custom annotations to the deployment annotations: {} +# allows adding custom labels to the pods +podLabels: {} # allows adding custom annotations to the pods podAnnotations: {} @@ -28,6 +30,15 @@ podAnnotations: {} # When set, this will be added as a label to all Prometheus metrics # clusterName: "" +## Optionally specify an array of imagePullSecrets. +## Secrets must be manually created in the namespace. +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ +## e.g: +## imagePullSecrets: +## - name: regcred +## +imagePullSecrets: [] + # image contains the Docker image properties. image: # repository is the Docker image repository