fix commonLabels#1647
Conversation
|
@Jeffwan can you please review? |
|
It looks good to me. I am not sure if there's still user on /lgtm |
|
/approve |
|
@PatrickXYS can you approve this, as we need someone who is in the root OWNERS file |
|
@Bobgy could you also approve this? |
Bobgy
left a comment
There was a problem hiding this comment.
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.
| @@ -5,6 +5,7 @@ metadata: | |||
| app: centraldashboard | |||
| app.kubernetes.io/component: centraldashboard | |||
| app.kubernetes.io/name: centraldashboard | |||
There was a problem hiding this comment.
Looking at your PR, this label shouldn't exist now. Is this a mistake?
There was a problem hiding this comment.
That will be coming from the kustomization.yaml in overlay/application: https://github.com/kubeflow/manifests/blob/master/common/centraldashboard/overlays/application/kustomization.yaml
There was a problem hiding this comment.
Sorry, still not fully clear.
Why do some test snapshots have the two labels, while some do not?
Is that expected?
There was a problem hiding this comment.
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: centraldashboardOnes from base:
app: centraldashboard
kustomize.component: centraldashboardThere was a problem hiding this comment.
Thanks for clarification! Created an issue to track the problem: #1649.
|
/cc @PatrickXYS |
|
@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. |
|
/lgtm |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description of your changes:
Makes the following components have consistent
commonLabelsbetweenbaseandbase_v3:Checklist:
cd manifests/testsmake generate-changed-onlymake test