kube-render icon indicating copy to clipboard operation
kube-render copied to clipboard

Fix problem with values that contains "=" in --set operation

Open guidiego opened this issue 4 years ago • 0 comments

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 :)

guidiego avatar Oct 16 '20 19:10 guidiego