Skip to content

Multiple revisions of same release marked as DEPLOYED #2941

Description

@thoyt

After installing a chart successfully, I ran a helm upgrade with modified values. This caused a pre-upgrade hook to fail, since the hook tried to create a job that already existed (since it wasn't deleted before the upgrade).

At that point, helm ls would show the first revision as DEPLOYED. The second revision would appear only with helm ls -a. After deleting the job and rerunning helm upgrade, I noticed that there were now two releases of the same chart, both marked as DEPLOYED -- the first one, before the PENDING_UPGRADE revision, and the most recent.

$ helm ls
NAME 	REVISION	UPDATED                 	STATUS  	CHART      	NAMESPACE
comfy	1       	Thu Sep 14 18:24:07 2017	DEPLOYED	comfy-1.0.0	default
comfy	4       	Thu Sep 14 18:47:03 2017	DEPLOYED	comfy-1.0.0	default

As expected helm status shows the status of the most recent deployed revision. Helm history for the release shows the following:

REVISION	UPDATED                 	STATUS         	CHART      	DESCRIPTION
1       	Thu Sep 14 18:24:07 2017	DEPLOYED       	comfy-1.0.0	Install complete
2       	Thu Sep 14 18:46:33 2017	PENDING_UPGRADE	comfy-1.0.0	Preparing upgrade
3       	Thu Sep 14 18:46:52 2017	SUPERSEDED     	comfy-1.0.0	Preparing upgrade
4       	Thu Sep 14 18:47:03 2017	DEPLOYED       	comfy-1.0.0	Upgrade complete

This conflicts with my understanding of what DEPLOYED means -- I thought that for any release, there could only be one revision that is DEPLOYED, corresponding to the kubernetes objects currently in the cluster. Should I be interpreting the meaning of DEPLOYED differently or is this behavior not expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions