mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/cluster-overprovisioner] Adds imagePullSecrets to deployment (#21616)
Signed-off-by: Marcos Estevez <marcos.stvz@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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: ""
|
||||
|
||||
Reference in New Issue
Block a user