blendle / kubecrt

Convert Helm charts to Kubernetes resources.
ISC License
115 stars 11 forks source link

Support partial templates #12

Closed niels-s closed 6 years ago

niels-s commented 6 years ago

Helm supports the use of golang partial template, it would be nice if kubecrt would support this as well. This would enable us to spread large config files across multiple files so is easier to maintain them.

JeanMertz commented 6 years ago

@niels-s Unless I am misunderstanding your request, this is already supported. See this PR where I use this technique quite heavily:

https://github.com/blendle/charts/pull/24

jurre commented 6 years ago

I think the question is, can we also do this in a project where we use the chart, rather than in charts itself?

niels-s commented 6 years ago

^^ that @JeanMertz, for our prometheus deployment we would like to splits the alerting rules and sources for example into different templates grouped by something logical like for example kafka lag rules, k8s rules, http status/latency rules, ... but right now it's not possible I guess since we only pass 1 file to kubecrt we should have an option to indicate the template location

JeanMertz commented 6 years ago

Solved in https://github.com/blendle/kubecrt/pull/14