Hi, i'm trying to import a `Deployment` which I be...
# kubernetes
g
Hi, i'm trying to import a
Deployment
which I believe has the same spec, but pulumi is giving me a diff where the entire
containers
array is going to be deleted. When I dump out my deployment object in the code, it has the containers array filled in. I'm guessing i'm wrong and the state doesn't match for the import. Is this a pulumi bug where it can't diff the array contents?
Here's an example.
So i think this is because i'm using a dynamic secret name:
Copy code
envFrom.push({ secretRef: { name: secret.apply((s: k8s.core.v1.Secret) => s.metadata.name) } });
When i hard code this to a static string, i get a proper diff on the container
c
@gorgeous-animal-95046 I would be extremely surprised if this was a bug in the pulumi diff code. the diff logic itself is provided by a very well-tested diff library.
I bet it is the dependency. @microscopic-florist-22719?