diff --git a/storage/kubernetes/client.go b/storage/kubernetes/client.go index fe53fb47e7..af0a2338fa 100644 --- a/storage/kubernetes/client.go +++ b/storage/kubernetes/client.go @@ -84,7 +84,8 @@ func offlineTokenName(userID string, connID string, h func() hash.Hash) string { return strings.TrimRight(encoding.EncodeToString(hash.Sum(nil)), "=") } -const kubeResourceMaxLen = 63 +// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names +const kubeResourceMaxLen = 253 var kubeResourceNameRegex = regexp.MustCompile(`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`)