Skip to content

Check for mutating matchLabels in apps/v1 #19

Closed

Description

@mattfarina

matchLabels cannot change in apps/v1 (e.g., StatefulSet). That means things like the chart label cannot change when the version increments. This is no longer allowed.

A way to catch an error on the chart or other common labels would be useful.

Activity

  1. desaintmartin commented on Sep 11, 2018

    @desaintmartin

    Actually, even apps/v1beta2 (and extension/v1beta2?) are affected.

    See helm/charts#7680 for reference issue.

  2. jlegrone commented on Sep 15, 2018

    @jlegrone
    Member

    Would it be a good idea to test that an existing install can be upgraded successfully? We could catch this and some additional classes of bugs related to upgrades, like missing checksums for configmaps/secrets.

    A static analysis of templates would provide much more actionable feedback, however.

  3. scottrigby commented on Feb 11, 2019

    @scottrigby
    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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions