(Presumably since Helm 2.8.0 or later), upgrading a HelmRelease with
fails with this error: invalid operation: cannot use force conflicts and force replace together. This seems to come out of helm: https://github.com/helm/helm/blob/main/pkg/kube/client.go#L818C33-L818C105
A possible train of thought (just grepping through the source code):
- Since some time (1.5.0), helm-controller defaults to server-side apply. (from Changelog).
- That sets forceConflicts always to true. (
|
upgrade.ForceConflicts = serverSideApply // We always force conflicts on server-side apply. |
)
- "upgrade.force: true" sets forceReplace also to true (
|
upgrade.ForceReplace = obj.GetUpgrade().Force |
)
- and that triggers that check in Helm.
(Presumably since Helm 2.8.0 or later), upgrading a HelmRelease with
fails with this error:
invalid operation: cannot use force conflicts and force replace together. This seems to come out of helm: https://github.com/helm/helm/blob/main/pkg/kube/client.go#L818C33-L818C105A possible train of thought (just grepping through the source code):
helm-controller/internal/action/upgrade.go
Line 77 in 8a0f9d0
helm-controller/internal/action/upgrade.go
Line 119 in 8a0f9d0