Skip to content

ssa: introduce support for migrating API version#1174

Merged
matheuscscp merged 1 commit intomainfrom
migrate-api-version
Apr 16, 2026
Merged

ssa: introduce support for migrating API version#1174
matheuscscp merged 1 commit intomainfrom
migrate-api-version

Conversation

@matheuscscp
Copy link
Copy Markdown
Member

@matheuscscp matheuscscp commented Apr 15, 2026

Part of: fluxcd/flux2#5715

Supersedes: #1131

This PR has tests that reproduce the issue with external-secrets with MigrateAPIVersion set to false, then fixes the issue when MigrateAPIVersion is set to true.

The new options introduced for the PatchMigrateToVersion function are for scoping the migration down to what Flux controllers actually do: they do not touch subresources and should not touch managed field entries belonging to other managers (the cleanup of kubectl and override managers is responsible for that, in cleanupMetadata).

@matheuscscp matheuscscp requested a review from a team as a code owner April 15, 2026 11:48
@matheuscscp matheuscscp added enhancement New feature or request area/server-side-apply SSA related issues and pull requests backport:flux/v2.8.x To be backported to flux/v2.8.x labels Apr 15, 2026
Comment thread ssa/manager_apply.go Outdated
@matheuscscp matheuscscp force-pushed the migrate-api-version branch 2 times, most recently from 6a3c5e8 to da60eaa Compare April 15, 2026 14:19
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
@matheuscscp matheuscscp force-pushed the migrate-api-version branch from da60eaa to 18b0e9d Compare April 15, 2026 16:38
Copy link
Copy Markdown
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @matheuscscp 🏅

@matheuscscp matheuscscp merged commit 7828661 into main Apr 16, 2026
14 checks passed
@matheuscscp matheuscscp deleted the migrate-api-version branch April 16, 2026 08:52
@fluxcdbot
Copy link
Copy Markdown
Member

Successfully created backport PR for flux/v2.8.x:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/server-side-apply SSA related issues and pull requests backport:flux/v2.8.x To be backported to flux/v2.8.x enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants