Add imagePullSecrets (#25)

* chore: Add imagePullSecrets

* fix: linting

* test

* troubleshoot testing
This commit is contained in:
Pere Alcoberro 2020-09-16 12:15:49 +02:00 committed by GitHub
parent 37629c9311
commit b4144f449c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1
description: A chart for a Cadvisor deployment
name: cadvisor
version: 1.1.3
version: 1.1.4
appVersion: 0.36.0
home: https://github.com/google/cadvisor
sources:

View File

@ -46,6 +46,7 @@ The following table lists the configurable parameters of the Prometheus MSTeams
| `image.repository` | container image repository | `k8s.gcr.io/cadvisor` |
| `image.tag` | container image tag | `v0.36.0` |
| `image.pullPolicy` | container image pull policy | `IfNotPresent` |
| `image.pullSecrets` | container image pull secrets | `[]` |
| `nodeSelector` | node labels for pod assignment | `{}` |
| `tolerations` | node tolerations for pod assignment | `[]` |
| `affinity` | node affinity for pod assignment | `{}` |

View File

@ -24,6 +24,12 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{ if .Values.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
serviceAccountName: {{ template "cadvisor.serviceAccountName" . }}
{{ if .Values.hostNetwork }}
hostNetwork: true

View File

@ -3,6 +3,11 @@ image:
tag: v0.36.0
pullPolicy: IfNotPresent
## 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/
##
pullSecrets: []
container:
port: 8080
additionalArgs: