Skip to content

add helm ownership for hooks#803

Open
Fkuloff wants to merge 2 commits into
release-1.21from
fix/helm-ownership-webhooks-release-1.21
Open

add helm ownership for hooks#803
Fkuloff wants to merge 2 commits into
release-1.21from
fix/helm-ownership-webhooks-release-1.21

Conversation

@Fkuloff

@Fkuloff Fkuloff commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Overview

1:1 backport of #802 to release-1.21 (clean cherry-pick of ab31207).

What this PR does / why we need it

EnsureConversionWebhooks applied a module's ConversionWebhook before the Helm release without Helm ownership markers, so the following helm upgrade refused to adopt it and failed with invalid ownership metadata. This stamps app.kubernetes.io/managed-by=Helm and meta.helm.sh/release-{name,namespace} on the resource before applying, so Helm adopts the pre-applied object.

Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
(cherry picked from commit ab31207)
Signed-off-by: Artem Kuleshov <artem.kuleshov@flant.com>
@Fkuloff Fkuloff self-assigned this Jul 14, 2026
@Fkuloff Fkuloff added the bug Something isn't working label Jul 14, 2026
@Fkuloff Fkuloff requested a review from ldmonster July 14, 2026 16:45
@Fkuloff Fkuloff marked this pull request as ready for review July 14, 2026 16:56
Signed-off-by: Artem Kuleshov <artem.kuleshov@flant.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants