-
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
Provide explicit definition of variables scope in ClusterClass #6706
Comments
/area topology |
/kind api-change |
/triage accepted The biggest challenge here is to make sure that a variable that is meant to be used in scope is not used somewhere else, and this is complex given that variables can be used in go templates or in external patches. |
With our current implementation of external patches it's impossible to decide if a variable is used in an external patch. We could do the following:
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/lifecycle frozen still something worth to discuss and address |
@fabriziopandini: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. 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. |
/priority important-longterm |
Note about the current situation: This idea of scope could help to address this use case too. |
User Story
As a user, I would like to understand what variables are meant to be used as overrides at CP/MD levels
Detailed Description
As of today, ClusterClass allows to define variables and all those variables can be used in a Cluster's
topology.variables
as well as for providing override at CP and MD level.However, in practice, it really makes sense to use variables as override only a subset of variables, the ones that are used by patches impacting CP/MD of a given class.
This is currently hard to detect, especially for users which are not the ClusterClass authors, so it will be great if we can extend the current API by providing explicit information about the scope where a variable can be used.
Anything else you would like to add:
Might be it is possible to Inferr variables scope from patches, but it doesn't seem the right way to go because it will be complex and brittle.
/kind feature
The text was updated successfully, but these errors were encountered: