-
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
Add --name-template
flag for generate cluster
sub-command
#8534
Comments
This issue is currently awaiting triage. If CAPI contributors determines this is a relevant issue, they will accept it by applying the The 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. |
Let's see if other users have similar needs, but IMO we should not compare clusterctl to full-fledged template engines, and thus also assume advanced template features should be considered out of scope. The core scope of clusterctl is to provide a solution to manage the lifecycle of providers - which is a complex and very specific problem - while managing templates is a facility we provided to get users started, but we are well aware that the majority of users rely on other tools existing in the ecosystem which are great in managing yaml, like helm, kapp or git-ops tools. Also, clusterctl already supports pluggable template engines, so if someone wants more advanced templating features this can be achieved by using clusterctl as a library and providing a type that implements this interface. There are also "no code" options, like https://cluster-api.sigs.k8s.io/clusterctl/configuration.html#provider-repositories or https://cluster-api.sigs.k8s.io/clusterctl/configuration.html#overrides-layer. Last but not least, I would prefer to not add more complexity to our yaml processor before we define a path forward for #8325 |
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 |
Fair enough. |
What would you like to be added (User Story)?
Detailed Description
I would like to be able to call
clusterctl generate cluster --name-template '{{ .Name }}'
and have that exclude the cluster name from each individual resource. The current default could be considered to be of the form:{{ .ClusterName }}-{{ .Name }}
Anything else you would like to add?
This idea is not new, helm has this feature. See helm/helm#1015
Label(s) to be applied
/kind feature
The text was updated successfully, but these errors were encountered: