Skip to content

K8s pipeline client: configurable labels and annotations on every spawned resource (ArgoCD marks them orphaned) #36355

Closed

Description

@traagel

Problem

When pipelineServiceClientConfig.type is k8s, the server creates Jobs, CronJobs, OMJobs, CronOMJobs, ConfigMaps and Secrets in the pipelines namespace at runtime. None of them come from a GitOps manifest, so ArgoCD lists every one of them as an orphaned resource.

The usual remedy on the ArgoCD side (orphanedResources.ignore on the AppProject) is not available on every platform. Some infra teams only allow the application to mark its own resources, through the ArgoCD tracking label app.kubernetes.io/instance=<app> plus the annotations argocd.argoproj.io/compare-options: IgnoreExtraneous and argocd.argoproj.io/sync-options: Prune=false.

Current state

  • podAnnotations exists but is applied only to pod templates and to OMJob/CronOMJob objects. Plain Jobs, CronJobs, job templates, ConfigMaps and Secrets receive no annotations. The application and automation Job pod templates receive no metadata at all.
  • There is no podLabels parameter, so the ArgoCD tracking label cannot be set.

Proposal

  • Add a podLabels parameter (key=value,key=value, env K8S_POD_LABELS) parsed like podAnnotations.
  • Apply podLabels and podAnnotations to the metadata of every object the client creates and to every pod template or OMJob pod spec, for ingestion, application and automation runs.
  • Write the built-in labels after the configured ones, so a configured key can never change a label the client or the OMJob operator selects by.
  • Expose k8s.podLabels in the Helm chart (openmetadata: add k8s.podLabels for resources spawned by the pipeline client openmetadata-helm-charts#552).

Server PR: #36354

Activity

  1. added a commit that references this issue on Nov 4, 2026
    45ce442
  2. added a commit that references this issue on Nov 4, 2026
    cfcdbe9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions