Skip to content

[feat] ensure conversion hooks#790

Open
Fkuloff wants to merge 1 commit into
mainfrom
feature/ensure-conversion-hooks
Open

[feat] ensure conversion hooks#790
Fkuloff wants to merge 1 commit into
mainfrom
feature/ensure-conversion-hooks

Conversation

@Fkuloff

@Fkuloff Fkuloff commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Overview

Forward-ports the "ensure conversion hooks" feature to main. It shipped to release-1.21 in #783 but is missing on main; this brings main in line. Cherry-pick (-x) of 04ede3b — applied conflict-free on current main (3-way auto-merge), go build ./... and go vet pass.

What this PR does / why we need it

Adds a module-ensure-hooks task that applies a module's ConversionWebhook resources before its Helm release, and wires it into the module converge lifecycle (module_manager, converge-modules, task service, task.go). This lets the cluster's webhook-handler patch the target CRDs' spec.conversion before the module creates custom resources that need converting — otherwise the API server stores those resources before conversion is live and prunes the old-version fields.

Special notes for your reviewer

Straight forward-port of #783; no changes beyond the conflict-free cherry-pick onto main. Original author: Stepan Paksashvili.

Signed-off-by: Stepan Paksashvili <stepan.paksashvili@flant.com>
(cherry picked from commit 04ede3b)
@Fkuloff Fkuloff self-assigned this Jul 2, 2026
@Fkuloff Fkuloff requested a review from ipaqsa July 2, 2026 12:00
@Fkuloff Fkuloff added the enhancement New feature or request label Jul 2, 2026
@Fkuloff Fkuloff requested a review from ldmonster July 2, 2026 13:14
@Fkuloff Fkuloff marked this pull request as ready for review July 2, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants