Skip to content

Commit

Permalink
[postgresql] (feat): add imagePullSecrets (prometheus-community#587)
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Herbert <math.herbert@gmail.com>

 bumpchart

Signed-off-by: Mathieu Herbert <math.herbert@gmail.com>
  • Loading branch information
mathieuherbert authored Jan 16, 2021
1 parent 00c1160 commit d1e0d73
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.8.0"
description: A Helm chart for prometheus postgres-exporter
name: prometheus-postgres-exporter
version: 1.6.0
version: 1.7.0
home: https://github.com/wrouesnel/postgres_exporter
sources:
- https://github.com/wrouesnel/postgres_exporter
Expand Down
6 changes: 6 additions & 0 deletions charts/prometheus-postgres-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ spec:
initContainers:
{{ toYaml .Values.initContainers | indent 8 }}
{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
args:
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus-postgres-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ image:
tag: v0.8.0
pullPolicy: IfNotPresent

## 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/
##
# pullSecrets:
# - myRegistrKeySecretName

service:
type: ClusterIP
port: 80
Expand Down

0 comments on commit d1e0d73

Please sign in to comment.