-
I'm not sure if this is a bug or know-how problem on my side so I'll start with a question. I can decode and unzip tfstate Secrets without issue. However, using the same technique I can't decode tfplan Secrets into readable text.
The code looks fine to me but I don't have a dev env setup to step through with the debugger. I wanted to ask the community if there is something I'm missing before logging an issue. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Sometimes you have to ask a question to have a breakthrough. I figured out what was happening after looking at a test for tfplan it occurred to me the output still looks like compressed data...because it is. The solution is to decompress the data again like: I'll close this discussion and open an issue. |
Beta Was this translation helpful? Give feedback.
-
i get error |
Beta Was this translation helpful? Give feedback.
-
We now support writing a human readable plan as plain text in a ConfigMap, so you don't have to extract it yourself anymore. |
Beta Was this translation helpful? Give feedback.
Sometimes you have to ask a question to have a breakthrough. I figured out what was happening after looking at a test for tfplan it occurred to me the output still looks like compressed data...because it is. The solution is to decompress the data again like:
k get secrets tfplan-default-curly-voice-mcjc6s -o json |jq -r .data.tfplan |base64 -d |gzip -d |gzip -d
I'll close this discussion and open an issue.