-
Notifications
You must be signed in to change notification settings - Fork 167
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
Any call that use entity config should symbolize its keys #187
Comments
cc @moolitayer |
RecursiveOpenStruct symbolizes keys for us:
We should not re implement rails' deep_symbolize_keys |
@moolitayer Great. So I would suggest adding some info on this to the documentation. For example: namespace_str = <<-EOF
apiVersion: v1
kind: Namespace
metadata:
name: "my-namespace"
labels:
name: "my-namespace"
EOF
client.create_namespace(YAML.load(namespace_yaml_str)) Produces this error:
Based on your suggestion, this works:
|
@motymichaely I'm good with a Readme change. In your example:
|
@motymichaely interested in submitting a pr as per the above comment ? |
FYI Decided to go with |
Now that we have => I don't have bandwidth to work on this but would welcome a PR. @moolitayer are you still against? |
would prefer telling the user what they do wrong instead of doing work behind their back |
hmm, good idea. |
Hey,
There's a potential issue with calls that use entity_config (like here). They all assume entity_config has symbolized keys.
I'd propose normalizing entity_config hash by symbolizing its keys:
Any rejection for suggesting a pull request?
Thanks!
The text was updated successfully, but these errors were encountered: