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

feat: new cli parsing and environment variable #436

Merged
merged 2 commits into from
Oct 29, 2019
Merged

Conversation

hbagdi
Copy link
Member

@hbagdi hbagdi commented Oct 23, 2019

What this PR does / why we need it:

Revamps the CLI configuration and flags of the controller.
The controller can now be configured using environment variables and certain flags are marked as deprecated.

This also enables users to use k8s secrets for sensitive values like authentication header to use against Kong's Admin API, which had to be stored in plain-text previously.

In addition to CLI based configuration, environment variables can now be
used to configure the Ingress Controller.
All env vars are prefixed with `CONTROLLER_`, followed by the name of
the CLI flag (`-` converted to `_`).

The configuration is parsed into an intermediate struct and then later a
subset is passed down to the controller config. This is a change to make
split out controller and make it unit-testable in future, an effort
on-going since last few releases.
Breaking change deprecations
----------------------------

The following CLI flags are marked as deprecated and will be removed in
a future release:
- `--kong-url`
- `--admin-tls-skip-verify`
- `--admin-header`
- `--admin-tls-server-name`
- `--admin-ca-cert-file`

New replacements have been added, please see `--help` for more details.
@hbagdi hbagdi changed the title Feat/cli args feat: new cli parsing and environment variable Oct 23, 2019
@hbagdi hbagdi merged commit 8321d21 into master Oct 29, 2019
@hbagdi hbagdi deleted the feat/cli-args branch October 30, 2019 23:08
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.

1 participant