mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
* func: remove validation scaling for system jobs and dont canonicalize to 1 * test: update test to validate for 0 and improve error message * func: remove the canonicalization to 1 from system jobs * docs: add changelog * func: add test for scaling system jobs * temp: add logging to debug test * fix: clean up after test is done * fix: scaled down jobs will still have the stop allocation, update test to account for it * Update the e2e test to accomodate for system jobs to have an alloc per node * fix: filter to only count ready nodes on the node count * fix: remove the datacenter constrain from the system job definition * fix: compare alloc IDs to avoid flaky tests when verifying no alloc was stoped * fix: remove duplicated code
26 lines
363 B
HCL
26 lines
363 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
job "system_job" {
|
|
type = "system"
|
|
|
|
group "system_job_group" {
|
|
|
|
task "system_task" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "busybox:1"
|
|
|
|
command = "/bin/sh"
|
|
args = ["-c", "sleep 15000"]
|
|
}
|
|
|
|
env {
|
|
version = "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|