Skip to content

Helm is inconsistent about handling actual state of resources #3118

Closed

Description

@blakebarnett

We see this quite often with people new to Helm who know how to use Kubernetes and kubectl.

  1. User deploys a helm chart
  2. They make a tweak to the resources (like running kubectl scale or kubectl annotate)
  3. Later try to upgrade the chart (which apparently succeeds)

In most cases it seems like the upgrade works fine. In other cases changes or settings either get merged in, or dropped depending on what the state of the resource is within the release that tiller knows about.

AFAICT It would make sense if Helm made use of the same merging behavior in kubectl patch / kubectl apply to solve this problem, perhaps in 2 stages like:

  1. patch release with new changes to the chart
  2. patch actual resources with changes

I can see it being tricky to handle deletions for actual resources in this case, but it it would make sense to favor the contents of the chart in that case I suppose?

At the very least, helm should refuse to upgrade a modified actual resource and tell the user why.

Activity

  1. blakebarnett commented on Nov 8, 2017

    @blakebarnett
    Author

    I realized after thinking about this for a while that maybe what I'm actually asking for is a --no-tiller mode, that applies rendered resources directly to the k8s API.

    I realize this is a big change and probably not viable for charts installed via repository, but if this and the proposed change to allow a selection of a different template engine other than go-template were available, suddenly I have no qualms about helm at all and could see us using it indefinitely.

  2. fejta-bot commented on Feb 7, 2018

    @fejta-bot

    Issues go stale after 90d of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.

    If this issue is safe to close now please do so with /close.

    Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
    /lifecycle stale

  3. blakebarnett commented on Feb 7, 2018

    @blakebarnett
    Author

    /remove-lifecycle stale

    This seems to be relevant to the Helm 3 discussion but feel free to close it if it's being tracked elsewhere.

  4. bacongobbler commented on Feb 7, 2018

    @bacongobbler
    Member

    I'll move this to the milestone for now and we'll triage when we get there :)

  5. added this to the Upcoming - Major milestone on Feb 7, 2018
  6. fejta-bot commented on May 8, 2018

    @fejta-bot

    Issues go stale after 90d of inactivity.
    Mark the issue as fresh with /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.

    If this issue is safe to close now please do so with /close.

    Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
    /lifecycle stale

  7. bacongobbler commented on May 11, 2018

    @bacongobbler
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions