OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

[Feature] Support custom pod labels for K8s ingestion pods (K8sPipelineClient)

Open Zarubenko opened this issue 7 months ago • 2 comments

Feature Request

Problem

When using the Kubernetes native orchestrator (type: k8s), it is currently impossible to attach custom labels to ingestion pods (both Job/CronJob and OMJob operator modes).

The K8sPipelineClient supports podAnnotations via K8S_POD_ANNOTATIONS, but there is no equivalent podLabels support.

Root Cause

Three places need to be updated:

  1. conf/openmetadata.yaml — missing podLabels: ${K8S_POD_LABELS:-""} in pipelineServiceClientConfiguration.parameters

  2. K8sPipelineClientConfig.java — missing podLabels field (analogous to existing podAnnotations)

  3. K8sPipelineClient.java — buildJobSpec() and buildOMJob() do not pass podLabels to the pod template spec (same pattern as podAnnotations already works)

Expected Behavior

Similar to podAnnotations, users should be able to configure custom pod labels:

openmetadata:
  config:
    pipelineServiceClientConfig:
      k8s:
        podAnnotations: "key=value"
        podLabels: "team=my-team,component=component"  # new field

These labels should be applied to both main and exit handler pods.

Zarubenko avatar Apr 15 '26 12:04 Zarubenko

hi @Zarubenko can u assign me these issue

karthik120710 avatar Apr 16 '26 17:04 karthik120710

Hi @karthik120710, unfortunately I have no permissions for re-assign this issue

Zarubenko avatar Apr 20 '26 07:04 Zarubenko