In the `details` color console, are the red lines ...
# kubernetes
a
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
Can you paste the detailed diff?
a
I've obfuscated a bit (domain) .. but the problem should still be visible
g
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
ok, I'll try that!
This did not get past the error
This manifest works
g
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
Do you have a quick doc ref for usage? I'll search
g
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
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.
😛