From 7f308a2d7077910fda7cbe4407e1df15925cd5e8 Mon Sep 17 00:00:00 2001 From: env0 User Date: Tue, 20 Aug 2024 14:45:49 +0000 Subject: [PATCH] v3.0.851 --- templates/scaled-job.yml | 2 +- values.schema.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/scaled-job.yml b/templates/scaled-job.yml index 8c085fc..063e02b 100644 --- a/templates/scaled-job.yml +++ b/templates/scaled-job.yml @@ -223,5 +223,5 @@ spec: {{ end }} terminationGracePeriodSeconds: 18000 restartPolicy: Never - {{- include "env0-agent.tolerations" .Values.tolerations | nindent 10 -}} + {{- include "env0-agent.tolerations" (ternary .Values.tolerations .Values.deploymentTolerations (empty .Values.deploymentTolerations)) | nindent 10 -}} {{- include "env0-agent.affinity" (ternary .Values.affinity .Values.deploymentAffinity (empty .Values.deploymentAffinity)) | nindent 10 -}} diff --git a/values.schema.json b/values.schema.json index 297de6c..b919c81 100644 --- a/values.schema.json +++ b/values.schema.json @@ -177,11 +177,14 @@ "description": "Agent image pull secret", "type": "string" }, - "tolerations": { "description": "Kubernetes tolerations on the containers", "type": "array" }, + "deploymentTolerations": { + "description": "Kubernetes tolerations for the deployment pods, This will override the default tolerations for deployment pods", + "type": "array" + }, "affinity": { "description": "The default Kubernetes affinity that will be applied to all pods", "$schema": "agent/helm/schemas/kubernetesjsonschema.dev/v1.10.3-standalone/affinity.json"