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
empty properties treated as null #201
empty properties treated as null #201
Conversation
Can one of the admins verify this patch? |
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.
@jawitcher Thanks. I had a look at the PR and it looks like what we need.
Could you also do the following and then change it from DRAFT to the PR?
- Add the same logic for
getMode()
- Add unit tests
- Format the code
Thanks!
…ed 3) getMode() method fixed
I revised the code in accordance with your notes |
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.
Added one minor comment. Other than that looks good to me.
@mesutcelik could you also look and approve?
// given | ||
Map<String, Comparable> properties = createProperties(); | ||
properties.put(SERVICE_NAME.key(), " "); | ||
properties.put(SERVICE_DNS.key(), "service-dns"); | ||
new KubernetesConfig(properties); |
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.
// given | |
Map<String, Comparable> properties = createProperties(); | |
properties.put(SERVICE_NAME.key(), " "); | |
properties.put(SERVICE_DNS.key(), "service-dns"); | |
new KubernetesConfig(properties); | |
// given | |
Map<String, Comparable> properties = createProperties(); | |
properties.put(SERVICE_NAME.key(), " "); | |
properties.put(SERVICE_DNS.key(), "service-dns"); | |
// when | |
KubernetesConfig config = new KubernetesConfig(properties); | |
// then | |
assertEquals("service-dns", config.getServiceDns()); |
Could you change this test to this format? And could you also change the other tests the same way?
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.
👍 I think we can update helm chart readme how to use the workaround.. setting servine-name: empty_string
to be able to use DNS mode. I will leave it to you @leszko
@jawitcher Can you please sign the CLA before the merge? |
@leszko , I changed it |
Hi. I signed it :) |
Looks great 💯 Thanks a lot for the change @jawitcher ! |
No description provided.