[stable/cluster-overprovisioner] Adds imagePullSecrets to deployment (#21616)

Signed-off-by: Marcos Estevez <marcos.stvz@gmail.com>
This commit is contained in:
Marcos Estévez
2020-03-25 03:35:02 -07:00
committed by GitHub
parent 2e1c69c9be
commit 63804a76ee
4 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ appVersion: "1.0"
description: Installs the a deployment that overprovisions the cluster
name: cluster-overprovisioner
home: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler
version: 0.2.6
version: 0.3.0
maintainers:
- name: max-rocket-internet
email: max.williams@deliveryhero.com
+1
View File
@@ -43,6 +43,7 @@ The following table lists the configurable parameters for this chart and their d
| `priorityClassDefault.value` | Priority value of the default priorityClass | `0` |
| `image.repository` | Image repository | `k8s.gcr.io/pause`|
| `image.tag` | Image tag | `3.1` |
| `image.pullSecrets` | Image pull secrets | `[]` |
| `image.pullPolicy` | Container pull policy | `IfNotPresent` |
| `fullnameOverride` | Override the fullname of the chart | `nil` |
| `nameOverride` | Override the name of the chart | `nil` |
@@ -8,6 +8,7 @@
{{- $repository := .Values.image.repository }}
{{- $imageTag := .Values.image.tag }}
{{- $pullPolicy := .Values.image.pullPolicy }}
{{- $imagePullSecrets := .Values.image.pullSecrets }}
{{ range .Values.deployments }}
apiVersion: apps/v1
@@ -50,6 +51,12 @@ spec:
imagePullPolicy: {{ $pullPolicy }}
resources:
{{- toYaml .resources | nindent 12 }}
{{- if $imagePullSecrets }}
imagePullSecrets:
{{- range $imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- with .nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
@@ -12,6 +12,13 @@ image:
tag: 3.1
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
nameOverride: ""
fullnameOverride: ""