hex.k8s.jobs ​
- Source: module
- Function count: 1
hex.k8s.jobs.build ​
Copy Call Skeleton ​
nix
(hex.k8s.jobs.build {
name = "build";
image = "TODO";
})Required Args ​
| Arg | Type | Notes |
|---|---|---|
name | unknown | - |
image | unknown | - |
Optional Args ​
| Arg | Type | Default | Notes |
|---|---|---|---|
namespace | string | "default" | - |
labels | attrset | { app = name; } | keep these distinct from service labels so Services never select Job pods |
restartPolicy | string | "Never" | - |
backoffLimit | number | 3 | - |
activeDeadlineSeconds | null | null | - |
ttlSecondsAfterFinished | null | null | with plain apply or GitOps, a deleted Job is recreated and reruns |
parallelism | null | null | - |
completions | null | null | - |
completionMode | null | null | - |
podFailurePolicy | null | null | - |
hook | null | null | one of jobs.hooks; runs the Job as an Argo CD or Helm hook |
hashName | unknown | hook == null | suffix the name with a spec hash, since Job templates are immutable |
serviceAccount | bool | true | - |
serviceAccountName | null | null | use an existing ServiceAccount instead of creating one |
saSuffix | string | "-sa" | - |
roleRules | list | [ ] | - |
cpuRequest | string | "100m" | - |
memoryRequest | string | "256Mi" | - |
extraJobAnnotations | attrset | { } | - |
extraJob | attrset | { } | - |