I am trying to let Pulumi Kubernetes generate the ...
# kubernetes
m
I am trying to let Pulumi Kubernetes generate the corresponding YAML file instead of deploying the resource to the actual cluster. Currently I am trying to use the following code:
Copy code
k8s_yaml_provider = pulumi_kubernetes.Provider("render-yaml", render_yaml_to_directory="artifacts")
and then
Copy code
self._yaml_object = SomeCustomResource(
            args=args,
            opts=pulumi.ResourceOptions(provider=k8s_yaml_provider),
        )
After the first pulumi up, I can see the yaml file being created in
artifacts
directory; however, when I deleted the directory by accident, a
pulumi refresh
and
pulumi up
will not re-create the YAML files. Is there a way I can get the files re-created?