-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Validate dask cluster name to contain only allowed characters #826
Comments
It is possible that the Linux user name contains dask-kubernetes/dask_kubernetes/operator/kubecluster/kubecluster.py Lines 254 to 256 in 03aa9db
Not sure should the validation happen in |
It's interesting that the resource gets created, but I'm guessing if you look at the controller logs there are errors there when it tried to create the child components. Ideally the Kubernetes API would reject this name and give us an error that we can propagate back to the user. Maybe this is something we can configure in the CRD? Otherwise yeah we will need to add some client-side checking. Although maybe we should do that in |
This commit introduces cluster name validation in order to avoid the invalid state in which a `DaskCluster` resource with a too-long or RFC-1123-noncompliant name is created but cannot be deleted while the operator retries infinitely to create a scheduler service (see dask#826 for more details on this bug). Issues fixed: dask#870 dask#826
* fix(validation): Validate Dask Cluster Names This commit introduces cluster name validation in order to avoid the invalid state in which a `DaskCluster` resource with a too-long or RFC-1123-noncompliant name is created but cannot be deleted while the operator retries infinitely to create a scheduler service (see #826 for more details on this bug). Issues fixed: #870 #826 * Actually, stop removing the dask cluster automatically. It can be manually deleted. * Move the cluster name validation into a common module, add it to KubeCluster init, and add tests --------- Co-authored-by: Johanna Goergen <johanna.goergen@deepl.com>
Having a "." in the cluster name leads to a hung cluster in the "Created" state:
While it is described in official k8s docs about Object Names, it would be great to have a validation in the dask library that raises at least a warning.
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/
Code example:
The text was updated successfully, but these errors were encountered: