mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-07-25 00:44:40 +00:00
helm: use --rollback-on-failure for atomic on Helm v4 (#1144)
* helm: use --rollback-on-failure for atomic on Helm v4 Helm v4 renamed the `--atomic` flag to `--rollback-on-failure`. The old flag is deprecated on `helm upgrade` and removed entirely from `helm install`, so `atomic: true` failed against Helm v4 (issue #1143). Emit the version-appropriate flag from deploy() using the existing is_helm_v4() helper, covering both the upgrade and the replace/install code paths. The public `atomic` option is unchanged. Fixes: https://github.com/ansible-collections/kubernetes.core/issues/1143 Co-Authored-By: Claude Opus 4.8 * fix wrong link in the changelog fragment Signed-off-by: Yuriy Novostavskiy <yuriy@novostavskiy.kyiv.ua> --------- Signed-off-by: Yuriy Novostavskiy <yuriy@novostavskiy.kyiv.ua>
This commit is contained in:
committed by
GitHub
parent
3634105366
commit
bc17b33d44
2
changelogs/fragments/20260611-helm-atomic-helm-v4.yml
Normal file
2
changelogs/fragments/20260611-helm-atomic-helm-v4.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- helm - use the ``--rollback-on-failure`` flag instead of the deprecated/removed ``--atomic`` flag when ``atomic=true`` is used with Helm v4 (https://github.com/ansible-collections/kubernetes.core/pull/1144).
|
||||
Reference in New Issue
Block a user