Is there a way to get Pulumi's `kustomize` support...
# kubernetes
s
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
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
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
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.