Unable to create Dapr sidecar service when AppID is long #2068
Labels
area/k8s-operator
kind/bug
Something isn't working
kind/documentation
Improvements or additions to documentation
P1
Projects
In what area(s)?
/area operator
What version of Dapr?
HEAD
Expected Behavior
A
dapr
sidecar service to be created for applications with valid App IDs.Actual Behavior
When using really long AppID, like
"calculator-with-very-long-name-exceeding-sixty-four-characters"
,dapr-operator
fails with this errorThis is due to Kubernetes requiring that Service name must be a DNS label https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-subdomain-names which caps out at 63 in length (https://tools.ietf.org/html/rfc1123).
We probably need to update our doc to restrict the App IDs, or change the sidecar Service naming to allow for the current unrestricted set.
Steps to Reproduce the Problem
Use a very long AppId, or use characters not allowed in RFC1123.
Release Note
RELEASE NOTE: Added RFC1123 validation for app IDs
The text was updated successfully, but these errors were encountered: