helm: ensure kured on 1.24 gets the correct toleration

This commit is contained in:
Jack Francis
2022-05-06 10:22:07 -07:00
parent d771013cde
commit 7397365c51
4 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.9.2"
description: A Helm chart for kured
name: kured
version: 2.13.0
version: 2.14.0
home: https://github.com/weaveworks/kured
maintainers:
- name: ckotzbauer
+1 -1
View File
@@ -92,7 +92,7 @@ The following changes have been made compared to the stable chart:
| `service.annotations` | Annotations to apply to the service (eg to add Prometheus annotations) | `{}` |
| `podLabels` | Additional labels for pods (e.g. CostCenter=IT) | `{}` |
| `priorityClassName` | Priority Class to be used by the pods | `""` |
| `tolerations` | Tolerations to apply to the daemonset (eg to allow running on master) | `[{"key": "node-role.kubernetes.io/master", "effect": "NoSchedule"}]`|
| `tolerations` | Tolerations to apply to the daemonset (eg to allow running on master) | `[{"key": "node-role.kubernetes.io/control-plane", "effect": "NoSchedule"}]` for Kubernetes 1.24.0 and greater, otherwise `[{"key": "node-role.kubernetes.io/master", "effect": "NoSchedule"}]`|
| `affinity` | Affinity for the daemonset (ie, restrict which nodes kured runs on) | `{}` |
| `nodeSelector` | Node Selector for the daemonset (ie, restrict which nodes kured runs on) | `{}` |
| `volumeMounts` | Maps of volumes mount to mount | `{}` |
+11 -1
View File
@@ -169,9 +169,19 @@ spec:
{{- if .Values.extraEnvVars }}
{{ toYaml .Values.extraEnvVars | nindent 12 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- if .Values.tolerations }}
{{- with .Values.tolerations }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- else }}
{{- if ge .Capabilities.KubeVersion.Minor "24" -}}
- key: node-role.kubernetes.io/control-plane
effect: NoSchedule
{{- else }}
- key: node-role.kubernetes.io/master
effect: NoSchedule
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
+1 -3
View File
@@ -87,9 +87,7 @@ podLabels: {}
priorityClassName: ""
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
tolerations: []
affinity: {}