Skip to content

feat: add annotations flag for kubernetes jobs - #976

Open
zapo wants to merge 1 commit into
leg100:masterfrom
Optable:feat/kube-annotations
Open

feat: add annotations flag for kubernetes jobs#976
zapo wants to merge 1 commit into
leg100:masterfrom
Optable:feat/kube-annotations

Conversation

@zapo

@zapo zapo commented Aug 5, 2026

Copy link
Copy Markdown

Adds --kubernetes-annotations to the kubernetes executor so custom annotations can be set on the pods created for run jobs.

The primary use case is cluster-autoscaler.kubernetes.io/safe-to-evict so that in-progress runs are not disrupted by cluster-autoscaler node scale-down.

@zapo
zapo marked this pull request as draft August 5, 2026 16:16
Add a --kubernetes-annotations flag (env OTF_KUBERNETES_ANNOTATIONS) so
custom annotations can be set on the pods created for kubernetes jobs.
The primary use case is setting
cluster-autoscaler.kubernetes.io/safe-to-evict so that in-progress runs
are not disrupted by cluster-autoscaler node scale-down.

Annotations are applied to the pod template only (not the job or secret),
mirroring the existing --kubernetes-labels flag. Wire the flag through the
otfd and otf-agent helm charts, bump chart versions, regenerate READMEs,
and document it in flags.md and executors.md.
@zapo
zapo force-pushed the feat/kube-annotations branch from ad6f4fd to 4507dd3 Compare August 5, 2026 16:22
@zapo
zapo marked this pull request as ready for review August 5, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant