Skip to content

fix commonLabels#1647

Merged
k8s-ci-robot merged 1 commit into
kubeflow:masterfrom
thesuperzapper:fix_common_labels
Nov 16, 2020
Merged

fix commonLabels#1647
k8s-ci-robot merged 1 commit into
kubeflow:masterfrom
thesuperzapper:fix_common_labels

Conversation

@thesuperzapper

Copy link
Copy Markdown
Member

Description of your changes:
Makes the following components have consistent commonLabels between base and base_v3:

  • centraldashboard
  • jupyter-web-app
  • notebook-controller

Checklist:

  • Unit tests have been rebuilt:
    1. cd manifests/tests
    2. make generate-changed-only
    3. make test

@thesuperzapper

Copy link
Copy Markdown
Member Author

@Jeffwan can you please review?

@Jeffwan

Jeffwan commented Nov 16, 2020

Copy link
Copy Markdown
Member

It looks good to me. I am not sure if there's still user on base/ probably some 1.0 users. In the future, we may want to remove and deprecate legacy manifests

/lgtm

@Jeffwan

Jeffwan commented Nov 16, 2020

Copy link
Copy Markdown
Member

/approve

@thesuperzapper

Copy link
Copy Markdown
Member Author

@PatrickXYS can you approve this, as we need someone who is in the root OWNERS file

@thesuperzapper

Copy link
Copy Markdown
Member Author

@Bobgy could you also approve this?

@Bobgy Bobgy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally updating labels is a breaking change to upgrade experience.
We can document to tell users delete old deployments when they see the label selector immutable error message, but it's not ideal.

So I'd want to make sure we should minimize such changes as much as possible in the future.

Comment thread jupyter/jupyter-web-app/base_v3/kustomization.yaml
@@ -5,6 +5,7 @@ metadata:
app: centraldashboard
app.kubernetes.io/component: centraldashboard
app.kubernetes.io/name: centraldashboard

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at your PR, this label shouldn't exist now. Is this a mistake?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, still not fully clear.
Why do some test snapshots have the two labels, while some do not?
Is that expected?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the stack is using the application overlay, there will be both, but not otherwise (because I removed them from the base).

Ones from application overlay:

    app.kubernetes.io/component: centraldashboard
    app.kubernetes.io/name: centraldashboard

Ones from base:

    app: centraldashboard
    kustomize.component: centraldashboard

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarification! Created an issue to track the problem: #1649.

@Bobgy

Bobgy commented Nov 16, 2020

Copy link
Copy Markdown
Contributor

/cc @PatrickXYS
the tests didn't fail, so I guess we may have lost tests for #1131 or the tests were not added properly initially?

@thesuperzapper

thesuperzapper commented Nov 16, 2020

Copy link
Copy Markdown
Member Author

@Bobgy I agree that we need to confirm if we want to force users to remove their Deployment resources during the next upgrade.

NOTE: I made these changes to make the labels consistent.

@Bobgy

Bobgy commented Nov 16, 2020

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bobgy, Jeffwan, thesuperzapper

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit a95c7d0 into kubeflow:master Nov 16, 2020
@thesuperzapper thesuperzapper deleted the fix_common_labels branch November 16, 2023 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants