-
Notifications
You must be signed in to change notification settings - Fork 99
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.