Validate dask cluster name to contain only allowed characters
- Dominant language
- Python
- Stars
- 324
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Description
Having a "." in the cluster name leads to a hung cluster in the "Created" state:
```text
❯ kubectl get daskclusters
NAME WORKERS STATUS AGE
dmitry.balabka-cluster 1 Created 17h
```
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:
```python
from dask_kubernetes.operator import KubeCluster
# Create a Dask cluster by calling Kubernetes API via kubectl command based on provided specificatoin
cluster = KubeCluster(
name="dmitry.balakba-cluster",
namespace="dask-operator",
)
client = cluster.get_client()
# Renders cluster configuration in the cell output
client
```
Contributor guide
Assessment
This issue has not been assessed yet.