-
Notifications
You must be signed in to change notification settings - Fork 27
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
convert options to CLI args #472
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@cprivitere: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/remove-lifecycle rotten |
/triage accepted |
The README.md today reflects only four options that can be defined via CLI. The pattern of
METAL_
env vars and JSON config files (cloud-sa.json) is consistent with how Metal CLI is managed today: https://github.com/equinix/metal-cli/blob/main/internal/cli/root.go#L116-L171. By making the options (defined in README.md) CLI args, users will have a full set of methods to define options: args, env, config. This will improve the user experience through better discoverability and documentation of options.As in Metal CLI, Viper could be used to replace the environment fetching code in CPEM:
cloud-provider-equinix-metal/metal/config.go
Lines 96 to 199 in 45dde1a
Once these arguments are defined via the CLI, they can included in the
--help
output and included in generated markdown generation (replacing the hand-maintained README.md table):The generated documentation could then be included in the docs/ directory (docs/cmd/?).
The text was updated successfully, but these errors were encountered: