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
Feature Request: Support translating patch rules to template in ClusterClass controller #10556
Comments
This issue is currently awaiting triage. CAPI contributors will take a look as soon as possible, apply one of the 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-sigs/prow repository. |
/priority awaiting-more-evidence Could you kindly provide more detail about what do you mean with "The current clusterclass function in the cluster-api" and what you want to achieve. As a general note, please be aware that generally we don't want to expose CAPI controllers code as a library / public functions; there are only two exception:
|
Thank you for your reply!
|
Sorry but we're not going to make arbitrary internal functions public. Feel free to copy the code if it's useful to you. It's just not sustainable for us to maintain something like this. |
Can you provide relevant controllers to parse the clusterclass results into various templates and provide them to the Portal or Web to demonstrate the correctness of the patch rule? |
No sorry. We can't add additional controllers to CAPI for this use case |
Thanks for the reply, but I'm wondering why,does it affect the definition of the CAPI architecture? If we want to implement such requirements, can we only copy the code? |
We are usually not adding controllers to CAPI to provide a backend for UIs that folks are building on top of CAPI. The goal of our controllers is to reconcile objects within Kubernetes clusters. |
@fabriziopandini Maybe you have a better way to express it, but this seems entirely out of scope for the project |
Yes, the project uses Apache 2 licence, so you are free to copy the code.
The reason is explained in https://cluster-api.sigs.k8s.io/user/manifesto#the-complexity-budget Also, PTAL #10138 who document previous attempt to solve the same problem and why we are now dropping this effort (because there was no interest to implement it up to a good state) Happy to discuss this at the office hours if it can help, but I agree with @sbueringer to not proceed with this feature request |
Thanks, what do you guys suggest, folk to a personal repository and then copy it and use it or is there a better suggestion? |
I think there is no perfect answers, it boils up to use the process you are comfortable with. Since this is not going to be implemented in Cluster API |
@fabriziopandini: 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-sigs/prow repository. |
What would you like to be added (User Story)?
Support translating patch rules to template in ClusterClass controller
Detailed Description
The current clusterclass function in the cluster-api can apply a cluster's patch rule to a template, which was an internal method at the time. We have a scenario where we need to use this patch function, and we want to provide an ability to escape the content of the patch rule to the corresponding template.
Anything else you would like to add?
No response
Label(s) to be applied
/kind feature
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.
The text was updated successfully, but these errors were encountered: