-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
I used validateReleaseName method from org.microbean.helm.ReleaseManager for validate releaseName.
But even the validate passed, I still get the error below:
ReleaseName:34abfbaea5a54ce2a59223bc9efd3895 deploy failed,
cause:io.grpc.StatusRuntimeException: UNKNOWN: release 34abfbaea5a54ce2a59223bc9efd3895 failed:
Service "34abfbaea5a54ce2a59223bc9efd3895-access-test" is invalid:
metadata.name: Invalid value: "34abfbaea5a54ce2a59223bc9efd3895-access-test":
a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')
So,if the pattern below should be modify to '[a-z]([-a-z0-9]*[a-z0-9])?' ?
public static final Pattern DNS_SUBDOMAIN_PATTERN = Pattern.compile("^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$");
I'm not so sure...
Metadata
Metadata
Assignees
Labels
No labels