Open jackfrancis opened 2 years ago
/area managedcluster /help /good-first-issue
@CecileRobertMichon: This request has been marked as suitable for new contributors.
Please 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
by commenting with the /remove-good-first-issue
command.
@CecileRobertMichon: The label(s) area/managedcluster
cannot be applied, because the repository doesn't have them.
@jackfrancis @CecileRobertMichon i think this covers it: https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/exp/api/v1beta1/azuremanagedmachinepool_webhook.go#L290-L301
indeed!
/close
@CecileRobertMichon: Closing this issue.
So actually the foo that @luthermonson links to is validation that the user-configured pool name is no longer than 6 characters. I originally opened up this issue to track consideration of doing this automatically (truncating).
If we want to consider doing that (user inputs "my-pool-name-win" and we truncate to "win-kX" or something) we can re-open this issue.
Ah, understood. The title makes it sound like this is about validation I think.
/reopen /retitle Shorten AKS Windows pool names when AzureManagedMachinePool name is too long
@CecileRobertMichon: Reopened this issue.
@jackfrancis @CecileRobertMichon I would like to get some more insight on this issue if possible!
I'm not actually convinced we want to do this. @luthermonson do you have thoughts? Would you prefer a capz-enforced string concatenation and/or 6-char hash that replaces the inputted node pool name, or would you prefer capz to fail validation and force the user to purposefully choose a name that is 6 chars or fewer?
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:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/kind feature
Describe the solution you'd like [A clear and concise description of what you want to happen.]
The AKS API enforces a max 6 character limit for node pool names. Because this is not necessarily an intuitive requirement, let's consider ways to do this automatically on behalf of users.
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
A possible approach to follow is https://github.com/kubernetes-sigs/cluster-api-provider-azure/pull/1408
Environment:
kubectl version
):/etc/os-release
):