Skip to content

Update with force: true fails #1453

Description

@MartinEmrich

(Presumably since Helm 2.8.0 or later), upgrading a HelmRelease with

upgrade:
  force: true

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions