-
Notifications
You must be signed in to change notification settings - Fork 103
Adopt the new k8s-sigs about-api project's ClusterProperty API #838
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
Comments
/assign @zhujian7 |
Hi @qiujian16 , Can I try to work on this ? |
sure thing and thanks!, something to note:
|
Hi @qiujian16 , So Basically I should keep the support for ClusterClaim but I need to create support for ClusterProperty which will take precedence on ClusterClaim. So Basically If ClusterProperty is not found it will try to find by ClusterClaim. If label selector matches and if cluster property selector does not match then I need to go for cluster claim matcher also right? I know I have simplified it a lot. However just want to confirm the logic before I proceed with the implementation. |
I do not think we do need to update managedcluster API, the clusterproperty will still be reflected as status.clusterclaims in the managedCluster, so we do not need to change the cluster selector part. What i meant is how the registration agent collect both clusterclaims and clusterproperty on the spoke and update the status.clusterClaims on the managedcluster CR. |
this is the draft code main...qiujian16:ocm:about-api I did before. |
Thanks for the context above, @qiujian16 . I think I have a better understanding now. I’ll need to fetch the cluster properties during registration. I’m going to start working on this and will reach out if I have any questions. |
Hi @qiujian16 , I have raised a draft pr to confirm the changes. I am still working on the test cases and also adding more vendor Can you let me know if you find something that I am missing? Thanks |
Hi @qiujian16 , Also wanted to confirm should add PR Type as Non-Breaking or tag it Release. I got confused as this is assigned to a parent release. |
Describe the enhancement
There is a new API over at k8s-sigs call the ClusterProperty API: https://github.com/kubernetes-sigs/about-api
It's for defining arbitrary properties about a cluster which is similar to our current usage of ClusterClaim API.
We should consider migrating from ClusterClaim to ClusterProperty to better follow k8s community standard.
original issue here open-cluster-management-io/community#156
The text was updated successfully, but these errors were encountered: