[Feature] Support custom pod labels for K8s ingestion pods (K8sPipelineClient)
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:
-
conf/openmetadata.yaml— missingpodLabels: ${K8S_POD_LABELS:-""}inpipelineServiceClientConfiguration.parameters -
K8sPipelineClientConfig.java— missingpodLabelsfield (analogous to existingpodAnnotations) -
K8sPipelineClient.java—buildJobSpec()andbuildOMJob()do not passpodLabelsto the pod template spec (same pattern aspodAnnotationsalready 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.
hi @Zarubenko can u assign me these issue
Hi @karthik120710, unfortunately I have no permissions for re-assign this issue