Skip to content

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

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

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

Conversation

@kabicin

@kabicin kabicin commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

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.

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