Skip to content

crd-install added to an existing chart causes CRD to be deleted and re-created #4740

Closed

Description

@munnerz

As per #4259 (comment)

It appears that adding the crd-install annotation retrospectively to a chart will cause the CRD to be deleted and then re-created, or in some cases, causes it to be attempted to be created when it already exists.

I am not too certain on the details of how this bug behaves/manifests, but it's become a fairly critical issue for cert-manager users upgrading to v0.5.0 (which includes this annotations) from v0.4.x (which does not).

I've seen reports of users that have had all their custom resources for our CRDs deleted, and other repos that have gotten Helm into a 'broken' state whereby they constantly get an AlreadyExists error.

This may well be two separate bugs, but we have only begun to see issues since adding the crd-install annotation.

We do not currently have e2e upgrade tests for the chart, hence why this has slipped through our automated testing.

It'd be great to open some discussion on this, and aggregate conversation here to see if others are seeing similar problems!

Activity

  1. munnerz commented on Oct 5, 2018

    @munnerz
    ContributorAuthor

    Ah, I have just seen #4697. Looks like my issue is a dupe, so I will copy this across!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions