[stable/kured] Allow setting imagePullSecrets and nodeSelector from values.yaml (#9590)

* [stable/kured] Allow setting `image.pullSecrets` and `nodeSelector` from values.yaml

Signed-off-by: William Hughes <will@willhughes.name>

* Update Chart.yaml

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
This commit is contained in:
Will Hughes
2019-01-09 08:29:06 -08:00
committed by Kubernetes Prow Robot
parent bb47f58747
commit f8419597d5
4 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.1.0"
description: A Helm chart for kured
name: kured
version: 1.0.0
version: 1.1.0
home: https://github.com/weaveworks/kured
maintainers:
- name: plumdog
+2
View File
@@ -7,12 +7,14 @@ See https://github.com/weaveworks/kured
| `image.repository` | Image repository | `quay.io/weaveworks/kured` |
| `image.tag` | Image tag | `master-c42fff3` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Image pull secrets | `[]` |
| `extraArgs` | Extra arguments to pass to `/usr/bin/kured`. See below. | `{}` |
| `rbac.create` | Create RBAC roles | `true` |
| `serviceAccount.create` | Create service account roles | `true` |
| `serviceAccount.name` | Service account name to create (or use if `serviceAccount.create` is false) | (chart fullname) |
| `updateStrategy` | Daemonset update strategy | `OnDelete` |
| `tolerations` | Tolerations to apply to the daemonset (eg to allow running on master) | `[{"key": "node-role.kubernetes.io/master", "effect": "NoSchedule"}]`|
| `nodeSelector` | Node Selector for the daemonset (ie, restrict which nodes kured runs on) | `{}` |
| `podAnnotations` | Annotations to apply to pods (eg to add Prometheus annotations) | `{}` |
See https://github.com/weaveworks/kured#configuration for values for `extraArgs`. Note that
+8
View File
@@ -31,6 +31,14 @@ spec:
serviceAccountName: {{ template "kured.serviceAccountName" . }}
hostPID: true
restartPolicy: Always
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+3
View File
@@ -3,6 +3,7 @@ image:
# Appears to be without numbered numbered tags, so using this instead
tag: 1.1.0
pullPolicy: IfNotPresent
pullSecrets: []
extraArgs: {}
@@ -19,4 +20,6 @@ tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector: {}
podAnnotations: {}