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

cmd/contour: add -c config-path flag #1253

Merged
merged 2 commits into from
Jul 19, 2019

Conversation

davecheney
Copy link
Contributor

@davecheney davecheney commented Jul 19, 2019

Fixes #1130

This PR adds the ability to supply configuration values to contour serve
from a configuration file. Some gymnastics are required to make this
work with kingpin and keep the precedence of config file -> env vars ->
cli flags.

At the moment only a few values are plumbed into the config file, mainly
to keep the linters happy. More will be added in 0.15.

Signed-off-by: Dave Cheney dave@cheney.net

Fixes projectcontour#1130

This PR adds the ability to supply configuration values to contour serve
from a configuration file. Some gymnastics are required to make this
work with kingpin and keep the precidence of config file -> env vars ->
cli flags.

At the moment only a few values are plumbed into the config file, mainly
to keep the linter's happy. More will be added in 0.15.

Signed-off-by: Dave Cheney <dave@cheney.net>
To keep the linters happy, expose a few serveContext values via -c
configfile.

Signed-off-by: Dave Cheney <dave@cheney.net>
@davecheney davecheney added this to the 0.14.0 milestone Jul 19, 2019
@davecheney davecheney merged commit bfb0441 into projectcontour:master Jul 19, 2019
@davecheney davecheney deleted the fixedbugs/1130 branch July 19, 2019 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

contour serve should take its configuration from a configuration file
1 participant