✨ Add tpl and include functions from Helm#13191
✨ Add tpl and include functions from Helm#13191sathieu wants to merge 1 commit intokubernetes-sigs:mainfrom
Conversation
Signed-off-by: Mathieu Parent <math.parent@etik.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @sathieu. Thanks for your PR. I'm waiting for a github.com 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. DetailsInstructions 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. |
|
/area clusterclass |
We implemented https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20220330-topology-mutation-hook.md which provides a better alternative for when you are hitting limitations of json patches. Notably, the benefits that you will get from moving patches to an external component are way more that addressing this specific use case. |
|
There is currently only one provider available (https://cluster-api.sigs.k8s.io/reference/providers#runtime-extensions), nutanix, which works like a black box. The effective changes made by the provider are not detailed (unless you read the code). I find this confusing. I agree that JSON patches are limited, but this feature (more dynamic patches) should be in core IMO. Maybe another method is needed? Kubernetes is including CEL mutations (currently beta, off-by-default), could this be a part forward in core ? Also, giving access to intermediary resources would be great (to understand what is changed by each step). This is another topic. |
|
I think we should not try to build an extensive templating engine within the core CAPI controller. If there is demand I would recommend building that out-of-tree, while also not trying to reinvent the wheel considering numerous pre-existing projects and languages for this |
What this PR does / why we need it:
We use metal3 provider and the image depends on various factors:
Instead of hardcoding the image template in the clusterclass, we need to construct it from various other variables.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #