Re: Ordering of Helm subcharts


Bernd Adamowicz
 

Hi Paul!

Thanks for answering. Actually I already tried your second approach with some scripting voodoo around it which of course worked. But meanwhile I came across a better solution by using the k8s resource List. Looks like this:

apiVersion: v1
kind: List
items:
  - apiVersion: {{ .Values.tekton.apiVersion }}
    kind: Task
    metadata:
...
  - apiVersion: {{ .Values.tekton.apiVersion }}
    kind: Pipeline
    metadata:
...
  - apiVersion: {{ .Values.tekton.apiVersion }}
    kind: PipelineRun
    metadata:
...

However, for me the question remains if it is sufficient that Helm sorts resources only by a hard wired source file? Wouldn't it be better to get all available resources from the API and sort those? I'm not sure and like to hear some opinions.

Join cncf-helm@lists.cncf.io to automatically receive all group messages.