https://pulumi.com logo
#kubernetes
Title
# kubernetes
a

ancient-megabyte-79588

03/31/2020, 5:02 PM
In the
details
color console, are the red lines existing and green the intended replacement and that is what the task is suggesting won't work?
g

gorgeous-egg-16927

03/31/2020, 5:06 PM
Can you paste the detailed diff?
a

ancient-megabyte-79588

03/31/2020, 5:09 PM
I've obfuscated a bit (domain) .. but the problem should still be visible
g

gorgeous-egg-16927

03/31/2020, 5:23 PM
Ok, so the red is what will be replaced, and the green is the expected replacement. However, I’m pretty sure the actual problem is with the
.metadata.annotations
field. Try setting that to an empty map in your resource definition.
a

ancient-megabyte-79588

03/31/2020, 5:41 PM
ok, I'll try that!
This did not get past the error
This manifest works
g

gorgeous-egg-16927

03/31/2020, 5:47 PM
It’s probably unhappy about the formatting within the data field then. Probably the easiest way to get them to match is to use the
ConfigMap.get()
function in your program, and export the value. Then you should be able to copy-paste that output into your program for the import.
a

ancient-megabyte-79588

03/31/2020, 5:49 PM
Do you have a quick doc ref for usage? I'll search
g

gorgeous-egg-16927

03/31/2020, 5:49 PM
Alternatively, you could set the
ignoreChanges
opt to do the import, and then manage it from there
So it would be something like
{ ignoreChanges: ["data"] }
a

ancient-megabyte-79588

03/31/2020, 6:06 PM
So I just copy/pasted the red text from the
details
and I put that into the .ts. It seems to have worked
I guess I need to find some way to type that into .ts so that it turns into what k8s wants
The .ts looks like this now
🚀 1
Thanks for your help @gorgeous-egg-16927 Greatly appreciated
👍 1
I'll eventually blog about all of this.
😛
5 Views