From c8f5c5e6d71b90392ebb30075562a138962fd638 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 9 Apr 2024 10:03:56 +0200 Subject: [PATCH] Remove constraints and update from the job level Makes more sens at the group level --- templates/job_start | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/templates/job_start b/templates/job_start index 50f850b..11690aa 100644 --- a/templates/job_start +++ b/templates/job_start @@ -9,19 +9,3 @@ [[- if has .nomad "priority" ]] priority = [[ .nomad.priority ]] [[- end ]] -[[ template "common/constraints" . ]] - -[[- if has .nomad "update" ]] - - update { - [[- range $key := coll.Slice "max_parallel" "health_check" "min_healthy_time" "healthy_deadline" "progress_deadline" "auto_revert" "auto_promote" "canary" "stagger" ]] - [[- if has $.nomad.update $key ]] - [[- if or (test.IsKind "bool" (index $.nomad.update $key)) (test.IsKind "number" (index $.nomad.update $key)) ]] - [[ $key ]] = [[ index $.nomad.update $key ]] - [[- else ]] - [[ $key ]] = [[ index $.nomad.update $key | toJSON ]] - [[- end ]] - [[- end ]] - [[- end ]] - } -[[- end ]]