kfctl icon indicating copy to clipboard operation
kfctl copied to clipboard

Support yaml manifest generation.

Open tmc opened this issue 6 years ago • 3 comments

The previous generate command enabled workflows such as (the documented one of) Argo CD. Could the ability to write manifests out to stdout or disk be restored?

tmc avatar Dec 06 '19 23:12 tmc

Hi @tmc ! AFAIK, what we have right now is kfctl build, which generates a kustomize folder with all the kustomize applications. Argo CD supports kustomize applications so maybe you want to try it that way. Just point to the generated kustomization file on the top level of each folder (eg istio/kustomization.yaml).

Would that work for you? If not you could generate the yaml with kustomize and use those. Make sure to use the same version as kfctl.

Finally, if you think generating yaml in kfctl makes more sense, let's use this issue as a feature request.

yanniszark avatar Dec 07 '19 12:12 yanniszark

Isn't it the case that kfctl build creates many kustomize applications? With my current configuration I appear to need to set up 29 different argo apps which seems unreasonable.

tmc avatar Dec 16 '19 21:12 tmc

Isn't it the case that kfctl build creates many kustomize applications? With my current configuration I appear to need to set up 29 different argo apps which seems unreasonable.

It's true that there are a lot fo applications, I don't know how hard it is to set them up in argo. If you want to generate the YAML manually you can iterate through the directories under $KFAPP/kustomize and do a kustomize build kustomize/<app_name>. Make sure to use the same kustomize version as kfctl.

/cc @gabrielwen @jlewi for the feature request

yanniszark avatar Dec 24 '19 16:12 yanniszark