https://pulumi.com logo
s

salmon-account-74572

09/21/2020, 8:28 PM
Is there a way to get Pulumi's
kustomize
support to also render YAML to a directory? (It appears as if Pulumi's
kustomize
support is acting more like
kubectl -k
as opposed to standalone
kustomize
.)
g

gorgeous-egg-16927

09/21/2020, 10:32 PM
I haven’t tested it, but I’d expect it to work with the
RenderYamlToDirectory
flag. Internally, the provider is using the kustomize libs to render YAML and then applying it with the same process as our Helm and YAML manifest support. It worked with both of those last I checked
s

salmon-account-74572

09/22/2020, 3:17 AM
So if I create a new
kustomize
provider with the
RenderYamlToDirectory
flag (as you demonstrated in the other thread about creating a new K8s provider), then it should work. Yes?
g

gorgeous-egg-16927

09/22/2020, 5:23 AM
Correct. It should work with any k8s construct. It’s implemented by writing out YAML at the point that Pulumi would normally submit the resource to the apiserver, so think of the “render yaml” provider as a local stand in for a k8s cluster.
11 Views