sparse-intern-71089
01/26/2021, 6:57 PMgentle-diamond-70147
01/26/2021, 6:59 PMancient-megabyte-79588
01/26/2021, 7:08 PMpulumi refresh
inspects the stack and the script, and tries to bring them together. So if the app doesn't have a resource described, and the cluster doesn't have it, but the stack does have that resource, it would remove it from the stack.ancient-megabyte-79588
01/26/2021, 7:09 PMancient-megabyte-79588
01/26/2021, 7:12 PMpulumi refresh
to fix that.ancient-megabyte-79588
01/26/2021, 7:38 PMgentle-diamond-70147
01/26/2021, 8:46 PMpulumi refresh
to fix that too.
To expand a bit on the behavior you described... if you have a resource in your Pulumi state, but that resource does not exist in your provider, pulumi refresh
should "fix" that, meaning recognize the resource no longer exists and remove from your state file.gentle-diamond-70147
01/26/2021, 8:48 PMv3:Chart
resource itself is a component resource in Pulumi's terms, so it does not exist in that exact form in your k8s cluster.
So pulumi refresh
should have removed any of the sub-resources of that chart (if they no longer existed), but the chart component might not be removed. I'll need to confirm the "component refresh" behavior with a Pulumi engineer.ancient-megabyte-79588
01/26/2021, 10:32 PMancient-megabyte-79588
01/26/2021, 10:32 PM