Skip to content

Commit 37a6a93

Browse files
committed
don't match the *.example.* case, only '.example.com and example.*
1 parent 0f4be7c commit 37a6a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apis/v1/shared_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ type RouteStatus struct {
521521
//
522522
// +kubebuilder:validation:MinLength=1
523523
// +kubebuilder:validation:MaxLength=253
524-
// +kubebuilder:validation:Pattern=`^(\*\.)?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*(\.\*)?$`
524+
// +kubebuilder:validation:Pattern=`(^(\*\.)?[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$)|(^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*(\.\*)?$)`
525525
type Hostname string
526526

527527
// PreciseHostname is the fully qualified domain name of a network host. This

0 commit comments

Comments
 (0)