You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
K8s pipeline client: configurable labels and annotations on every spawned resource (ArgoCD marks them orphaned) #36355
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.
Activity
Fixes open-metadata#36355: apply podLabels and podAnnotations to ever…
Fixes #36355: [2.0] apply metadata to Kubernetes pipeline resources (#…