Skip to content

fix: preserve user-defined app.kubernetes.io/part-of label#780

Open
kabicin wants to merge 1 commit into
mainfrom
fix/part-of
Open

fix: preserve user-defined app.kubernetes.io/part-of label#780
kabicin wants to merge 1 commit into
mainfrom
fix/part-of

Conversation

@kabicin
Copy link
Copy Markdown
Collaborator

@kabicin kabicin commented Jun 2, 2026

What this PR does / why we need it?:

Previously, the Initialize() method unconditionally overwrote the app.kubernetes.io/part-of label with spec.applicationName, even when users explicitly set a custom value in metadata.labels.

Now checks if the label exists before setting it, respecting user-provided values while still defaulting to spec.applicationName when the label is not present.

Does this PR introduce a user-facing change?

  • User guide
  • CHANGELOG.md

Which issue(s) this PR fixes:

Fixes #

Previously, the Initialize() method unconditionally overwrote the app.kubernetes.io/part-of label with spec.applicationName, even when users explicitly set a custom value in metadata.labels.

Now checks if the label exists before setting it, respecting user-provided values while still defaulting to spec.applicationName when the label is not present.
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.

1 participant