Open jayunit100 opened 2 years ago
I strongly second the idea of having a way to iterate on template development without running the tkg cli. I'd love to see a hack directory that has a shell script allowing me to specify an input file with data and have the output be the result of the templating engine's machinations. This would help de-mystify the template process and make it easier to make template changes. It might also facilitate a test suite that could use this approach to ensure against regressions when making template changes.
two things:
Problem
You cant make a workload cluster dry-run, without a management cluster.
I think the root of this problem is that we dont have an easy way to just generate cluster YAMLs without Tanzu client.
Solution
Its actually not hard to use raw YTT to generate cluster yaml, i.e. https://github.com/jayunit100/k8sprototypes/tree/master/peri2
Can we make this style of pure YTT generation of CAPI yaml integrated somehow into tanzu-framework? that way, we can easily hack on YTT cluster templates without having to create management-clusters.... (let me know if im missing an obvious solution).
Alt Solution
We also could just make it ultra easy to run the TAnzu cli YTT.go program, as it only has one external dependency, which we could remove and doc how to use it to generate.
Seems like the YTT Processor YAML has only one internal dependency:
PAthInfo
Could we remove the
PathInfo
dependency , so that the logic for how we process YTT was a standalone go program ? would make it easier to reason about / debug in certain cases....... let me know if this is the wrong approach . Its mostly just an idea at this point ....