OpenMetadata/docker
Pere Miquel Brull cfd71e8bd3
Fix k8s operator exit handler pod loop and TTL cleanup, add tolerations (#26971)
* Fix k8s operator exit handler pod loop and TTL cleanup, add tolerations support (#26772)

Fix two bugs in the OMJob operator:
- Exit handler pods were recreated indefinitely because findExitHandlerPod()
  lacked the name-based fallback that findMainPod() already had, causing
  label propagation delays to trigger repeated pod creation events
- Terminal phase handler never rescheduled for TTL-based cleanup, so pods
  were never cleaned up after ttlSecondsAfterFinished expired

Add tolerations support for ingestion pod scheduling across the full stack:
- Operator: OMJobPodSpec field, PodManager.buildPod(), CRD schema
- Server: OMJob model, K8sPipelineClientConfig parsing, K8sPipelineClient
  builder, K8sJobUtils serialization

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add K8S_TOLERATIONS env var mapping in openmetadata.yaml

Adds the tolerations config binding so the server picks up the
K8S_TOLERATIONS env var set by the Helm chart secret.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add tolerations to k8s test values for local validation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix cleanup

* Address PR review: remove redundant pod lookup and guard null items

- Remove redundant server-created pod selector fallback in findMainPod()
  since buildPodSelector() now matches all pods by omjob-name alone
- Add null guard for getItems() in deletePods() to prevent NPE
- Update local test values for namespace and image config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-14 09:42:54 +02:00
..
development Fix k8s operator exit handler pod loop and TTL cleanup, add tolerations (#26971) 2026-04-14 09:42:54 +02:00
docker-compose-ingestion preparing 1.12 branch (#24870) 2025-12-17 18:36:03 +05:30
docker-compose-openmetadata Add OpenSearch IAM auth; Add multi host listing capability in the existing config for search (#25204) 2026-01-14 12:35:53 +05:30
docker-compose-quickstart [Search] Upgrade Clients (#25719) 2026-02-07 18:54:13 +05:30
images/minimal-ubuntu Fix java 21 in docker (#21746) 2025-06-12 18:24:25 -07:00
mysql Pluggable API/Features Limits (#16782) 2024-07-01 14:59:25 +05:30
postgresql Fix #8208: OpenMetadata server supports Postgres 15 (#12370) 2023-08-02 11:13:28 +05:30
rdf-store fix #21555: Automator - Separating terms and tags in action config (#22970) 2025-08-28 10:50:48 +02:00
openmetadata-start.sh MINOR - Pydantic V2 warnings and better exception msg (#16916) 2024-07-04 14:54:41 +02:00
openmetadata.yaml Updating docker env and symbolic link for openmetadata.yaml (#12684) 2023-08-01 11:07:29 +05:30
run_local_docker.sh MINOR: Add option to disable ingestion in run_local_docker (#24676) 2025-12-03 12:35:29 +00:00
run_local_docker_rdf.sh RDF Ontology, Json LD, DCAT vocabulary support by mapping OM Schemas to RDF (#22852) 2025-08-17 18:36:26 -07:00
validate_compose.py Fix #23096: Add Airflow 3.x support (#24338) 2025-11-21 12:28:28 +01:00