-
Notifications
You must be signed in to change notification settings - Fork 892
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
[lfx-mentorship-2023-Sep-Nov] supports promote dependent resources automatically #3842
Comments
I am interested in this and would like to apply for lfx. |
Now we are still in the project proposal stage. According to the timeline, mentees can start applying at the time |
Hey, Any help would be highly appreciated. |
Hello @jwcesign @RainbowMango I am interested in learning about this project and want to work on this project under LFX Mentorship Karmada supports promote dependent resources automatically I liked how everything is very well documented. I look forward to applying to this project for this term. |
Hi, I am interested to contribute to this project but not as a Mentee but just as a part time as I don't wish to get paid. |
Hi @tamil07, thank you very much for participating in the open-source activities of the Karmada community. I believe that you can contribute to the entire project, such as solution design, code review, test design and execution, documentation writing and promotion, and so on. |
Hey @XiShanYongYe-Chang wrt to this issue I looked after the normal promote feature PR with -d=true flag and based on discussion I can see the main task is to give support for CRD and for not only promote command with dep but also advance scheduling that cannot be done as finding dependency is a problem(https://karmada.io/docs/v1.3/userguide/globalview/customizing-resource-interpreter/#interpretdependency) I tried looking for ways to get dependecies for CRDS but still have no success finding one! wanted to ask if there are any discussions wrt to it where any rough solutions was discussed so that I can deep dive those and work in similar direction for possible solutions |
cc the owner @jwcesign to help take an answer. |
To automatically promote the dependency resource, we need to identify the specific resources on which it depends. There are two methods for parsing these dependencies: through a webhook or using Lua. Here are the steps involved in each approach:
/cc @AvineshTripathi |
Thanks @jwcesign for the description I'll look into the lua interpretor today. Does that also find dependency or does it only generates the template? |
Hi, @AdiAkhileshSingh15 , It only finds the dependencies. The related code: karmada/pkg/util/interpreter/rule.go Line 327 in 9f7215a
|
Oh thanks let me try that as well! would check out today |
Hey mentors I have submitted my application for this issue and with my cover later I have added a bit about my understanding of the issue and problems we are facing and finally a little bit about solutions. Please have a look into it and do let me know if you have some more question or you need me to add more details. Thank you! |
I have a question after studying this problem. Karmada already supports two methods of interpreting crd:
Both methods can query the dependencies of resources. It seems that we only need to get the obj of the resources that need to be promoted in the member cluster during the promotion process, call |
Hi @zhy76, the main issue is how to implement it with karmadactl. From the perspective of karmada components, this is not difficult:
But with karmadactl, How can we call the service in the clusters? |
Task to be done:
|
/assign |
Hi, we need a proposal first. Can we add it to tasks? |
@XiShanYongYe-Chang: Closing this issue. In response to this:
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. |
CNCF LFX mentorship
https://github.com/cncf/mentoring/tree/main/programs/lfx-mentorship/2023/03-Sep-Nov
Mentor: @jwcesign
Backup: @RainbowMango
What would you like to be added:
Provide an automatic promotion mechanism for dependent resources in karmadactl. When promoting a resource, all the resources that it depends on will be automatically promoted as well. For example, promoting the Secret that is dependent by a Deployment.
Why is this needed:
Related issue: #1862
Tasks:
TDB
The text was updated successfully, but these errors were encountered: