koki / short

Manageable Kubernetes manifests through a composable, reusable syntax
https://docs.koki.io/short
Apache License 2.0
122 stars 14 forks source link

escape colons in names #192

Open ublubu opened 6 years ago

ublubu commented 6 years ago

By convention, the names of Kubernetes resources should be up to maximum length of 253 characters and consist of lower case alphanumeric characters, -, and ., but certain resources have more specific restrictions.

https://kubernetes.io/docs/concepts/overview/working-with-objects/names/

Not all names follow this convention, e.g. name: system:serviceaccount:kube-system:dns-controller We can't use our typical strategy of combining fields with : unless we escape the colons in these names.

The ClusterRoleBinding implementation will include this new behavior, but we need to retrofit other types with the new escaping Name type.