Skip to content

feat: expose Force on PolicyRef/KustomizationRef to recover from rejected updates#1877

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:yaml-force
Jul 17, 2026
Merged

feat: expose Force on PolicyRef/KustomizationRef to recover from rejected updates#1877
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:yaml-force

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

libsveltos' deployer.UpdateResource now supports a forceRecreate option: when an apply is rejected with an error that only a delete+recreate can fix (eg a Deployment moving to strategy.type: Recreate while the API server's previously-defaulted rollingUpdate is still set), the object is deleted and recreated instead of surfacing the error. This wires that option up to PolicyRef.Force and KustomizationRef.Force

@gianlucam76
gianlucam76 force-pushed the yaml-force branch 2 times, most recently from eeabd73 to 47defdc Compare July 17, 2026 05:43
…cted updates

libsveltos' `deployer.UpdateResource` now supports a `forceRecreate` option:
when an apply is rejected with an error that only a delete+recreate can fix
(eg a Deployment moving to `strategy.type: Recreate` while the API server's
previously-defaulted `rollingUpdate` is still set), the object is deleted
and recreated instead of surfacing the error. This wires that option up to
`PolicyRef.Force` and `KustomizationRef.Force`
@gianlucam76
gianlucam76 merged commit 36e6401 into projectsveltos:main Jul 17, 2026
11 checks passed
@gianlucam76
gianlucam76 deleted the yaml-force branch July 17, 2026 13:34
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