sparse-intern-71089
06/10/2020, 6:18 AMgorgeous-egg-16927
06/10/2020, 5:41 PMComponentResource
. It looks like those API docs are incorrect, so sorry for the confusion.gorgeous-egg-16927
06/10/2020, 5:41 PMgorgeous-egg-16927
06/10/2020, 5:50 PMaverage-receptionist-65239
06/10/2020, 9:59 PMaverage-receptionist-65239
06/10/2020, 10:07 PMtransformations
:
https://github.com/pulumi/pulumi-kubernetes/blob/baa5a9f757c8874f5d62c3f5c0ed82931738b5ea/sdk/nodejs/helm/v2/helm.ts#L41-L64
I used this to set opts.import
to the id of my resources. However, Pulumi still refused to import them, thinking they resources had changed quite dramatically with changes to `metadata`and spec
.
import [diff: +spec~metadata]; 1 warning
Any idea what I might be missing? The metadata
might need some tweaking in transformations
, but the spec
is not entirely new 🙂gorgeous-egg-16927
06/10/2020, 10:52 PMaverage-receptionist-65239
06/10/2020, 11:08 PMspec
which is the whole resource! That's definitely not the case. Plus these are the same Helm charts that are already deployed to production, so something's awry. These Helm charts i questions are our own and some are quite simple with a single resource. Anyhow, I've decided to spend no more time trying to import and am going to go with the somewhat risker delete-and-create solution. With computing, often the answer is a "reboot" 🙂average-receptionist-65239
06/13/2020, 3:22 AMlast-applied-configuration
annotation. I've given up on importing my Helm charts directly (as I would much rather use TypeScript than Go templates to configure my resources!). However, I've had some success importing resources using a "dry run" provider.
https://github.com/pulumi/pulumi-kubernetes/issues/924#issuecomment-566747162