kube-render
kube-render copied to clipboard
Fix problem with values that contains "=" in --set operation
Motivation
Today we are using Kube Render into Coteminas to create some config values. Unfortunately we use --set
to set a Base64 value that comes with a =
at the end of the string.
When we apply it to the actual version of kube render it throws this error:
File "/opt/hostedtoolcache/Python/3.9.0/x64/lib/python3.9/site-packages/kuberender/render.py", line 38, in parse_statement
key, value = override_statement.split('=')
ValueError: too many values to unpack (expected 2)
The Fix
To avoid this kind of problem I get the first =
position into the string and did a manually split using array operators :)