Partition helm templated resources into CRDs and other resources #3
Labels
enhancement
New feature or request
proposal
A new feature which may not be implemented and requires further discussion or use cases.
The
helm.template(chart)
function currently returns a list of all resources for the given chart. If CRDs are part of the template, these are included in the list. There may be situations where you want to separate these in your configuration. The helm commands offer anincludeCrds
flag which could be exposed, or alternatively CRDs could always be returned but instead of returning a list of resource manifests[resource]
, a map of{crds: [resource], resources: [resource]}
could be returned (i.e. pre-partitioned.All of this could also be unnecessary as there are tools to handle this yourself within KCL such as guarded list comprehensions and filters. The following code snippets will achieve the desired outcome:
Given that KCL offers this ability, I don't see a strong need for exposing a flag to include CRDs. If performance ever becomes an issue (by having CRDs unnecessarily rendered) then this could be revisited.
The text was updated successfully, but these errors were encountered: