-
Notifications
You must be signed in to change notification settings - Fork 413
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
clusterclass control-plane namingStrategy is not applied #4597
Comments
Hi @arno-pons! Adding the I just verified this by adding
Let me know if this works for you! |
Hi @willie-yao, Thanks for you feedback. My issue is related to the name of control plane azuremachine, not worker ones. But for controle plane nodes, the only field available for naming strategy, from my understanding, is the spec.controlPlane.namingStrategy.template. And as you say, it seems to apply at kubeadmcontrolplane object level only. Any idea how to set naming strategy for control plane azure machines/VMs ? |
I think this might be a CAPI core bug. I just hit this exact same behavior despite using the AWS provider instead. |
@thefirstofthe300 Thanks so much for the info! I have been trying to see why this isn't working in CAPZ since they mentioned this working for the VSphere provider. All logic that involves |
/kind bug
What steps did you take and what happened:
Deploying an Azure cluster using a clusterclass with a spec.controlPlane.namingStrategy.template attribute with value:
"{{ .cluster.name }}-control-plane-{{ .random }}"
doesn't create capz objects name (azuremachinetemplate, azuremachine and azure VM) matching this strategy.
Only capi objects (kubeadmcontrolplane and machine) are correctly named.
capz objects seems to be named with default strategy:
"{{ .cluster.name }}-{{ .random }}"
Here the clusterclass configuration:
What did you expect to happen:
Names of control-plane VM and nodes should match clusterclass namingStrategy.
Anything else you would like to add:
clusterclass with same namingStrategy for another infrastructure provider (vSphere capv) results in VM and node names matching the naming strategy.
Environment:
The text was updated successfully, but these errors were encountered: