Skip to content

feat(chart): add podLabels value for the manager pod - #413

Merged
raffaelespazzoli merged 1 commit into
redhat-cop:mainfrom
markkanen89:feat/chart-pod-labels
Nov 15, 2026
Merged

raffaelespazzoli merged 1 commit into
redhat-cop:mainfrom
markkanen89:feat/chart-pod-labels

Conversation

@markkanen89

Copy link
Copy Markdown
Contributor

Summary

Add a podLabels value to the Helm chart so that additional labels can be set
on the manager pod. It complements the existing podAnnotations value and
follows the same convention used by most community charts.

Motivation

The chart currently allows extra annotations on the manager pod but provides no
way to set labels. Labels are commonly required for purposes such as ownership
and cost attribution, and for admission policies that require specific labels
on every pod. Without this value, users must patch the rendered Deployment
after installation or maintain a fork of the chart.

Backward compatibility

podLabels defaults to an empty map. With default values the rendered
manifests are identical to those produced before this change, so existing
installations should be unaffected.

@raffaelespazzoli

Copy link
Copy Markdown
Collaborator

can you rebase from main. this should fix the ci issue

@raffaelespazzoli

Copy link
Copy Markdown
Collaborator

I'd like to release soon, I checked this PR and it's ok. I will merge it as soon as the ci works. please rebase, it should fix the issue.

Add a podLabels value to the Helm chart so users can set extra labels on
the manager pod, alongside the existing podAnnotations. Labels are added to
the Deployment's pod template only; the selector is unchanged.

Defaults remain unchanged: podLabels is empty, so the rendered output is
identical until a values file sets it.

Adds helm-unittest coverage for the default labels, custom labels and the
selector.
@markkanen89
markkanen89 force-pushed the feat/chart-pod-labels branch from 7828eca to 83c5b6e Compare November 15, 2026 15:09
@raffaelespazzoli
raffaelespazzoli merged commit 3f9b8d3 into redhat-cop:main Nov 15, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants