-
Notifications
You must be signed in to change notification settings - Fork 94
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
Apply all labels that klusterlet has to all the resources it will create and keep labels in sync #467
Comments
@zhiweiyin318 will you be able to take a look at this one? |
@EricaJ6 @qiujian16 I have some questions about this requirement.
|
Thanks @zhiweiyin318! For your questions,
|
@EricaJ6 currently there are 2 labels |
@zhiweiyin318 Other than the 2 default labels, we are adding additional customization labels to klusterlet, and the organization is using these customized labels for cost-tracking purpose. That's why we would like to sync the labels to all resources created by the klusterlet. Because of the use of additional customization labels, the 2 default labels do not meet the requirements. |
@EricaJ6 I synced the labels to all agent resources in the PR, but currently we cannot remove the label from agent resouces after the label is deleted on the klusterlet. Because we use the ocm/vendor/github.com/openshift/library-go/pkg/operator/resource/resourcemerge/object_merger.go Line 16 in 3001883
ocm/vendor/github.com/openshift/library-go/pkg/operator/resource/resourcemerge/object_merger.go Line 141 in 3001883
so if want to delete the removed labels on the agent resources , need to remove it from the agent resources manually . |
Thanks @zhiweiyin318 on sharing the information and updating the PR!
|
|
|
the feature will be included into release v0.14.0. you can try it using the latest images after the PR is merged. |
@EricaJ6 The PR is merged. please use the latest images to take a try. |
Thanks @zhiweiyin318 for the updates! I will try it once it is released. |
Describe the enhancement
We observed that resources created by klusterlet do not have labels that klusterlet has. For example,
klusterlet-agent
in theopen-cluster-management-agent
namespace is missing labels. We’re using these labels for cost tracking purposes. As discussed with @qiujian16, and agreed to apply all labels that klusterlet has to all the resources it will create. Additionally, if labels on the klusterlet got changed (either updated or added new ones), all the resources created by it should be in sync as well.The text was updated successfully, but these errors were encountered: