what would be the recommended way to run a kubectl...
# kubernetes
q
what would be the recommended way to run a kubectl command during a pulumi up?
n
This is what I do
Copy code
cmd, err := local.NewCommand(
	ctx, "cert-manager", &local.CommandArgs{
		Create: pulumi.Sprintf("kubectl apply -f %s", cfg.Require("manifest")),
		Delete: pulumi.Sprintf("kubectl delete -f %s", cfg.Require("manifest")),
	},
)
👍 1