-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More powerful bindings parser #219
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Using JSON will result in much cleaner types.
end | ||
|
||
def parse_csv(string) | ||
lines = CSV.parse(string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be baseless but I'm not 100% certain that this will parse things that worked before (which just used split(',')
). The most obvious example would be a newline in a value.
However, the additional quote parsing flexibility would be nice, so maybe the answer is "ship and see"
can you add some json to the integration tests for the bindings? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM, but can you make sure this is run through the integration tests?
Hm I don't see an integration test that exercises the |
ok should be fine then. I thought for some reason we did it from the command. You will have to super careful with the shell interpolations though. |
kubernetes-deploy --bindings
parser. Previously, it was not possible to pass bindings for which the value contains commas (because the comma was interpreted as a separator). This is now possible via something like--bindings='"foo=bar,42",bla=42'
.--bindings='{ "foo": 42, "bar": 17 }'
.