mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
Add global tolerations (#10368)
Signed-off-by: alizademhdi <alizademhdi@gmail.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
5cf599966a
commit
12a2ba34b2
15 changed files with 18 additions and 12 deletions
|
@ -45,6 +45,8 @@ annotations:
|
||||||
description: Add cronjob ttl support
|
description: Add cronjob ttl support
|
||||||
- kind: fixed
|
- kind: fixed
|
||||||
description: Ensure CA certificate config maps are created when data is provided
|
description: Ensure CA certificate config maps are created when data is provided
|
||||||
|
- kind: added
|
||||||
|
description: Add global tolerations
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: grafana
|
- name: grafana
|
||||||
version: v0.0.0
|
version: v0.0.0
|
||||||
|
|
|
@ -847,6 +847,7 @@ The chart values are organised per component.
|
||||||
| global.caCertificates.volume | object | `{}` | Global value to set single volume to be mounted for CA certificates for all deployments. Not used when `.Values.global.caCertificates.data` is defined Individual controller values will override this global value |
|
| global.caCertificates.volume | object | `{}` | Global value to set single volume to be mounted for CA certificates for all deployments. Not used when `.Values.global.caCertificates.data` is defined Individual controller values will override this global value |
|
||||||
| global.extraEnvVars | list | `[]` | Additional container environment variables to apply to all containers and init containers |
|
| global.extraEnvVars | list | `[]` | Additional container environment variables to apply to all containers and init containers |
|
||||||
| global.nodeSelector | object | `{}` | Global node labels for pod assignment. Non-global values will override the global value. |
|
| global.nodeSelector | object | `{}` | Global node labels for pod assignment. Non-global values will override the global value. |
|
||||||
|
| global.tolerations | list | `[]` | Global List of node taints to tolerate. Non-global values will override the global value. |
|
||||||
| nameOverride | string | `nil` | Override the name of the chart |
|
| nameOverride | string | `nil` | Override the name of the chart |
|
||||||
| fullnameOverride | string | `nil` | Override the expanded name of the chart |
|
| fullnameOverride | string | `nil` | Override the expanded name of the chart |
|
||||||
| namespaceOverride | string | `nil` | Override the namespace the chart deploys to |
|
| namespaceOverride | string | `nil` | Override the namespace the chart deploys to |
|
||||||
|
|
|
@ -39,7 +39,7 @@ spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.admissionController.tolerations }}
|
{{- with .Values.admissionController.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -40,7 +40,7 @@ spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.backgroundController.tolerations }}
|
{{- with .Values.backgroundController.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -40,7 +40,7 @@ spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.cleanupController.tolerations }}
|
{{- with .Values.cleanupController.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -65,7 +65,7 @@ spec:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
{{- with .Values.cleanupJobs.admissionReports.tolerations }}
|
{{- with .Values.cleanupJobs.admissionReports.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -65,7 +65,7 @@ spec:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
{{- with .Values.cleanupJobs.clusterAdmissionReports.tolerations }}
|
{{- with .Values.cleanupJobs.clusterAdmissionReports.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -65,7 +65,7 @@ spec:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
{{- with .Values.cleanupJobs.clusterEphemeralReports.tolerations }}
|
{{- with .Values.cleanupJobs.clusterEphemeralReports.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -65,7 +65,7 @@ spec:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
{{- with .Values.cleanupJobs.ephemeralReports.tolerations }}
|
{{- with .Values.cleanupJobs.ephemeralReports.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -65,7 +65,7 @@ spec:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
{{- with .Values.cleanupJobs.updateRequests.tolerations }}
|
{{- with .Values.cleanupJobs.updateRequests.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 12 }}
|
{{- tpl (toYaml .) $ | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -68,7 +68,7 @@ spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.policyReportsCleanup.tolerations }}
|
{{- with .Values.policyReportsCleanup.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -111,7 +111,7 @@ spec:
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.crds.migration.tolerations }}
|
{{- with .Values.crds.migration.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -50,7 +50,7 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.webhooksCleanup.tolerations }}
|
{{- with .Values.webhooksCleanup.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -40,7 +40,7 @@ spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.reportsController.tolerations }}
|
{{- with .Values.reportsController.tolerations | default .Values.global.tolerations}}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -37,6 +37,9 @@ global:
|
||||||
# -- Global node labels for pod assignment. Non-global values will override the global value.
|
# -- Global node labels for pod assignment. Non-global values will override the global value.
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
|
# -- Global List of node taints to tolerate. Non-global values will override the global value.
|
||||||
|
tolerations: []
|
||||||
|
|
||||||
# -- (string) Override the name of the chart
|
# -- (string) Override the name of the chart
|
||||||
nameOverride: ~
|
nameOverride: ~
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue