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

fix env substitution for docker compose v3 #658

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

kadel
Copy link
Member

@kadel kadel commented Jun 20, 2017

fixes #650

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 20, 2017
@bgruening
Copy link

@kadel awesome! Is it worth to include some tests for it, like the once from the issue maybe?

@kadel
Copy link
Member Author

kadel commented Jun 20, 2017

@kadel awesome! Is it worth to include some tests for it, like the once from the issue maybe?

definitely, I'll add it 😉

@surajnarwade
Copy link
Contributor

@kadel , works for me :)

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.

Other than two comments, LGTM.

)

// converts os.Envrion ([]string) to map[string]string
Copy link
Member

Choose a reason for hiding this comment

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

small spelling error Environ :)

// get environment variables
env, err := buildEnvironment()
if err != nil {
return kobject.KomposeObject{}, errors.Wrap(err, "can't build environment")
Copy link
Member

Choose a reason for hiding this comment

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

May be better putting "Cannot build environment variables"?

@kadel
Copy link
Member Author

kadel commented Jun 20, 2017

fixed as per comments

@cdrage
Copy link
Member

cdrage commented Jun 20, 2017

LGTM.

@cdrage cdrage merged commit c5cac56 into kubernetes:master Jun 20, 2017
@bgruening
Copy link

@kadel does this also add replacements for ${FOO:-bar}? Haven't seen this in your tests.
Thanks again!

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v3 env substitution is not working
5 participants