-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add missing labels to resources #2519
Conversation
Hi @cwrau. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Also, I'd like to backport this to at least 1.27 and up, do I still just open a PR with a cherry pick? |
labels: | ||
{{- include "occm.labels" . | nindent 4 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this give use the same labels here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this will result in the same labels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm looking at CI results and I only see this label added to the DaemonSet:
Labels: k8s-app=openstack-cloud-controller-manager
See for yourself in the "Describe failed openstack-cloud-controller-manager" step: https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/cloud-provider-openstack/2519/openstack-cloud-controller-manager-e2e-test/1749846521752326144/build-log.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how CI comes up with that, but I would say it's technically impossible for this label to exist, neither in the old version nor my new one 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, CI gets that from https://github.com/kubernetes/cloud-provider-openstack/blob/f7abe101ed041c8867d5fd1faa8351044f40a9cb/manifests/controller-manager/openstack-cloud-controller-manager-ds.yaml, so I guess we can disregard this.
dependencies: | ||
- name: common | ||
version: 2.14.1 | ||
repository: https://charts.bitnami.com/bitnami |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd rather prefer to just copy this single function here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uff, I'm highly against copying code, that's the whole point of using a central, standard library for this; to remove code duplication.
Then you'd have to keep track of the upstream changes and copy them as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but how "standard" is this standard library? I see it's used extensively in charts around GitHub, but it still seems to be from a third party?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's not a "standard" by definition, but as you said it's extremely widely used across helm charts and bitnami, even though they're a third party, has made themselves a recognizable helm chart writer and supporter known for their quality, at least in my knowledge circle.
/ok-to-test |
not sure ,is it a bug or label ? usually we only backport bugs |
It's both, the missing labels are a major bug. To be honest; I'm really surprised that noone noticed this before |
45b4a16
to
7a35e94
Compare
If this is to be backported it'll need an issue reported. |
@@ -1,11 +1,15 @@ | |||
apiVersion: v1 | |||
apiVersion: v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's not something we want to change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for dependencies
And, why not? 🤔🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I thought it's a dependency upgrade then no need to update the api version ..
appVersion: v1.28.0 | ||
description: Openstack Cloud Controller Manager Helm Chart | ||
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png | ||
home: https://github.com/kubernetes/cloud-provider-openstack | ||
name: openstack-cloud-controller-manager | ||
version: 2.29.0-alpha.5 | ||
version: 2.29.1-alpha.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be .6 instead ?
7a35e94
to
7ceb454
Compare
otherwise upgrades fail with `resource already exists, add missing labels`
7ceb454
to
5739f5c
Compare
appVersion: v1.29.0 | ||
description: Openstack Cloud Controller Manager Helm Chart | ||
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png | ||
home: https://github.com/kubernetes/cloud-provider-openstack | ||
name: openstack-cloud-controller-manager | ||
version: 2.29.0 | ||
version: 2.29.0-1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess not, so maybe now? 2.29.1
?
/test openstack-cloud-controller-manager-e2e-test |
/test openstack-cloud-csi-manila-e2e-test |
These CI errors look unrelated, I see them on #2316 too. /retest |
e2e report this error
I googled this but seems the related report is pointing to image has some problem ,may need check more |
Yes, I'm on this. |
/retest |
/approve also ok to me and leave unhold to someone might have further experience on helm than me :) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jichenjc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
imo the change looks ok, the labels should stay as is |
/hold cancel |
What this PR does / why we need it:
Currently the chart doesn't contain the required labels on the applied resources, this makes it impossible to update the chart without manual intervention
Which issue this PR fixes(if applicable):
Special notes for reviewers:
I introduced the common chart from bitnami to standardly handle labels. The chart could also be used to handle resource names, secrets, matchlabels, ... . But I wanted to have this change be backwards-compatible and non-intrusive
Release note: