[chart] Adding imagePullSecrets to Service Account

Signed-off-by: Marcos Estevez <marcos.stvz@gmail.com>
This commit is contained in:
Marcos Estevez 2019-01-07 16:11:57 +01:00
parent 920b6ffcdb
commit d7723fb0f4
No known key found for this signature in database
GPG Key ID: 475E60247D50DB07
4 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,5 @@
name: cert-manager
version: v0.6.0-dev.6
version: v0.6.0-dev.7
appVersion: v0.6.0-dev.4
description: A Helm chart for cert-manager
home: https://github.com/jetstack/cert-manager

View File

@ -64,6 +64,7 @@ The following table lists the configurable parameters of the cert-manager chart
| Parameter | Description | Default |
| --------- | ----------- | ------- |
| `global.imagePullSecrets` | Reference to one or more secrets to be used when pulling images | `[]` |
| `image.repository` | Image repository | `quay.io/jetstack/cert-manager-controller` |
| `image.tag` | Image tag | `canary` |
| `image.pullPolicy` | Image pull policy | `Always` |

View File

@ -1,6 +1,9 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets: {{ toYaml .Values.global.imagePullSecrets | nindent 2 }}
{{- end }}
metadata:
name: {{ template "cert-manager.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }}

View File

@ -1,6 +1,13 @@
# Default values for cert-manager.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
global:
## Reference to one or more secrets to be used when pulling images
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
imagePullSecrets: []
# - name: "image-pull-secret"
replicaCount: 1
strategy: {}