-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Clusterctl config cluster --list-variables should show required variables #4258
Comments
/help |
@CecileRobertMichon: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed 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. |
@fabriziopandini let me know what you think about this |
/area clusterctl |
/milestone v0.4.0 |
/assign @prankul88 @prankul88 feel free to unassign if you're no longer working on #3422 |
/lifecycle active |
/unassign |
/assign @mabikash |
@prankul88: GitHub didn't allow me to assign the following users: mabikash. Note that only kubernetes-sigs members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. 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. |
/assign @sgirem463 |
@CecileRobertMichon I am a new contributor trying to find an open issue to work on. This issue is unassigned but seems #4262 will fix it. Two questions:
Thanks! |
Hi @sgirem463 and welcome! Usually, you want to comment " @mabikash, can you please comment
What you did, looking for issues labeled "help-wanted" or "good-first-issues" with no one assigned should usually help you find issues looking for contributors. See https://github.com/kubernetes-sigs/cluster-api/blob/master/CONTRIBUTING.md for more info on contributing to Cluster API. |
/assign |
User Story
As a user, I would like to know which variables are required and which ones have defaults when I run
--list-variables
.Detailed Description
Right now,
clusterctl config cluster cluster --list-variables --infrastructure=azure:v0.4.12
returns:But out of these variables, only 5 of them are actually required.
I would like the output of
list-variables
to look something like this instead:Or, even better, give me the default values (but this might be a bit harder to implement):
(more or less, no need to follow this exact formatting).
Note that
CLUSTER_NAME
is a special case. It's technically required and not defaulted in the template but it does get set in the clusterctl command so it's not required to be set as an environment variable. It might make more sense to omit it altogether or to put it down as a separate category "other variables" that makes it clear it should be set as an arg in the command. Same thing about variables that get defaulted by clusterctl likeCONTROL_PLANE_MACHINE_COUNT
.Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
https://github.com/kubernetes-sigs/cluster-api/blob/master/cmd/clusterctl/client/yamlprocessor/simple_processor.go#L65
variables
ais a map[string]bool where the value is whether the variable has a default so we should be able to use the value to separate the variables into "required" and "optional" variables./kind feature
The text was updated successfully, but these errors were encountered: