pulumi-kubernetes icon indicating copy to clipboard operation
pulumi-kubernetes copied to clipboard

Allow renderYamlToDirectory to also update the resources on k8s

Open nesl247 opened this issue 4 years ago • 2 comments

It would be great if the renderYamlToDirectory feature also updated the kubernetes cluster. The use case is that I want to be able to output files for use with http://skaffold.dev for locally development, but want pulumi to actually update the cluster when running up.

The goal is to not have to duplicate all of the work to build a kubernetes application. While I could write the yaml, and tell pulumi to import it, that removes all of the benefits of having a programming language (templating, etc.).

nesl247 avatar Jun 17 '21 14:06 nesl247

Exactly what I was trying to find. Pulumi is great. Workflow tools like Skaffold and Devspace.sh don't know about pulumi, they need yaml. Figuring out the blend to leverage the dev workflow of devspace while still using Pulumi seems to be an area not really covered. Not certain it makes sense to start reinventing devspace and such by adding more logic like this to the stack.

sheldonhull avatar Feb 16 '22 19:02 sheldonhull

You could probably handle the use case by doing a two pass operation

Have two providers, one loaded from kubeconfig, the other the k8s file provider The file provider outputs the yaml files, then after that has completed, just load them as a ConfigGroup into the actual cluster provider?

prom3theu5 avatar Jun 21 '22 23:06 prom3theu5