-
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
Missing Regex Validation upon cluster creation leads to cluster unable to provision or delete #3874
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
Comments
4 tasks
/priority backlog |
k8s-ci-robot
added
the
priority/backlog
Higher priority than priority/awaiting-more-evidence.
label
Aug 24, 2023
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 |
k8s-ci-robot
added
the
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
label
Jan 26, 2024
/remove-lifecycle stale |
k8s-ci-robot
removed
the
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
label
Jan 29, 2024
related to #4699 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
/kind bug
What steps did you take and what happened:
When creating a cluster with a
.
character in the cluster name, no warning is generated that it is an invalid regex character. This leads to the cluster stuck in a failed provisioning state when creating:When creating the cluster, all that was seen in the capz logs was the reconciling AzureManagedControlPlane:
When attempting to delete, the cluster is unable to delete, and only then the following error can be seen in the capz logs:
Invalid input: autorest/validation: validation failed: parameter=resourceName constraint=Pattern value="test.cluster.name" details: value doesn't match pattern ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$
Full error when deleting:
kubectl logs deploy/capz-controller-manager -n capz-system manager | grep test.cluster.name | grep err
What did you expect to happen:
I expected there to be an error when creating the cluster, preventing me from attempting to provision in the first place.
Anything else you would like to add:
I have drafted some code changes to add a condition to check for this when the cluster is created; I will push the PR up shortly
Environment:
kubectl version
): 1.26.3/etc/os-release
): macos Ventura 13.3.1The text was updated successfully, but these errors were encountered: