https://pulumi.com logo
Title
m

many-helicopter-89037

01/06/2023, 6:08 AM
Hey all, we're planning to use
renderYamlToDirectory
as an option to dump Yaml files into our CD system. It works great with one caveat. How does file names are generated? Currently it's generating like
apps_v1-deployment-default-nginx-008d52b7.yaml
. I wanted to add some prefix to the file names so
kubectl apply
respects order of the resources. Is it possible to do?
g

gorgeous-egg-16927

01/06/2023, 4:56 PM
https://www.pulumi.com/blog/kubernetes-yaml-generation/ has more info about this. There’s no configurable way to change the names; they’re generated based on the type and resource name. CRDs are generated in a separate folder, so you should be able to run the apply like this without worrying about ordering otherwise:
kubectl apply -f "${RENDER_DIRECTORY}/0-crd"
kubectl apply -f "${RENDER_DIRECTORY}/1-manifest"