Skip to content

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

Open
gianlucam76 wants to merge 1 commit into
projectsveltos:mainfrom
gianlucam76:yaml-force
Open

feat: expose Force on PolicyRef/KustomizationRef to recover from rejected updates#1877
gianlucam76 wants to merge 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

…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`
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