Remove constraints and update from the job level

Makes more sens at the group level
This commit is contained in:
Daniel Berteaud 2024-04-09 10:03:56 +02:00
parent 65e9771acc
commit c8f5c5e6d7
1 changed files with 0 additions and 16 deletions

View File

@ -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 ]]