Skip to content
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

support parse key-only environment variable #317

Merged
merged 3 commits into from
Dec 19, 2016

Conversation

ngtuna
Copy link
Contributor

@ngtuna ngtuna commented Nov 28, 2016

fix #303

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 28, 2016
@kadel
Copy link
Member

kadel commented Nov 29, 2016

👍
But can you please also add unit test for this?

@sebgoa
Copy link
Contributor

sebgoa commented Dec 7, 2016

yeah, let's blocked everything until we get in the habit of making sure we have unit tests...

@ngtuna
Copy link
Contributor Author

ngtuna commented Dec 14, 2016

ok so @kadel I added the unit test. Please take a look.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.1%) to 37.093% when pulling fdc47a4 on ngtuna:env-key-only into 65e19e3 on kubernetes-incubator:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.1%) to 37.093% when pulling fdc47a4 on ngtuna:env-key-only into 65e19e3 on kubernetes-incubator:master.

Copy link
Member

@cdrage cdrage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with the exception of the merge-conflict.

@ngtuna
Copy link
Contributor Author

ngtuna commented Dec 16, 2016

Tks @cdrage Rebased!

@coveralls
Copy link

Coverage Status

Coverage increased (+2.0%) to 37.481% when pulling 8253805 on ngtuna:env-key-only into 7bda857 on kubernetes-incubator:master.

@cdrage
Copy link
Member

cdrage commented Dec 16, 2016

LGTM 👍

@ngtuna
Copy link
Contributor Author

ngtuna commented Dec 16, 2016

@cdrage please approve again then I can merge it.

@cdrage
Copy link
Member

cdrage commented Dec 16, 2016

@ngtuna I can approve, but since I still don't have access to @kubernetes-incubator it wont appear as 👍 / green.

{ev2, rs2},
{ev3, rs3},
{ev4, rs4},
}
Copy link
Member

@surajssd surajssd Dec 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not do it in literal form in here itself than declaring multiple variables? I don't say it's bad/wrong or not, just curious?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well It's just for making test cases looks clearly.

@ngtuna
Copy link
Contributor Author

ngtuna commented Dec 17, 2016

@cdrage I see :-(

@surajssd
Copy link
Member

surajssd commented Dec 19, 2016

@ngtuna Also three more conditions that are not tested:

env: "foo:bar=foobar"     name: "foo" val: "bar=foobar"
env: "foo=foo:bar"        name: "foo" val: "foo:bar"

env: "foo:"               name: "foo" val: ""

otherwise LGTM

@ngtuna
Copy link
Contributor Author

ngtuna commented Dec 19, 2016

@surajssd Added and rebased. Please take a look and approve if it's okay for you.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.6%) to 38.485% when pulling 7556f6f on ngtuna:env-key-only into 072d481 on kubernetes-incubator:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.6%) to 38.485% when pulling 7556f6f on ngtuna:env-key-only into 072d481 on kubernetes-incubator:master.

@surajssd surajssd merged commit c485a87 into kubernetes:master Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. review needed
Projects
None yet
7 participants