-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Description
What happened:
As far as I know metadata.name can be one or more DNS labels separated by dots (.) with the following constraints on max length: 1) each label has a max length of 63 characters 2) the maximum number of characters for the name (aka DNS subdomain) is 253 characters.
I did a couple of tests using v1.15.0 and max length for label is not respected
What you expected to happen:
I was able to successfully create a pod with a name with a single label with 64 and 72 characters.
See pod-name-15.pdf for example of manifest YAML file.
kubectl responded as follows:
pod/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx64 created
The expected outcome is an error.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version
): v1.15.0 - Cloud provider or hardware configuration:
- OS (e.g:
cat /etc/os-release
): - Kernel (e.g.
uname -a
): - Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:
@kubernetes/sig-cli
/sig cli
@kubernetes/sig-api-machinery
/sig api-machinery