File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -503,23 +503,25 @@ type RouteStatus struct {
503
503
}
504
504
505
505
// Hostname is the fully qualified domain name of a network host. This matches
506
- // the RFC 1123 definition of a hostname with 2 notable exceptions:
506
+ // the RFC 1123 definition of a hostname with 3 notable exceptions:
507
507
//
508
508
// 1. IPs are not allowed.
509
509
// 2. A hostname may be prefixed with a wildcard label (`*.`). The wildcard
510
510
// label must appear by itself as the first label.
511
+ // 3. A hostname may be suffixed with a wildcard label ( `.*`). The wildcard
512
+ // label must appear by itself as the last label.
511
513
//
512
514
// Hostname can be "precise" which is a domain name without the terminating
513
515
// dot of a network host (e.g. "foo.example.com") or "wildcard", which is a
514
- // domain name prefixed with a single wildcard label (e.g. `*.example.com`).
516
+ // domain name prefixed or suffixed with a single wildcard label (e.g. `*.example.com` or `example.* `).
515
517
//
516
518
// Note that as per RFC1035 and RFC1123, a *label* must consist of lower case
517
519
// alphanumeric characters or '-', and must start and end with an alphanumeric
518
520
// character. No other punctuation is allowed.
519
521
//
520
522
// +kubebuilder:validation:MinLength=1
521
523
// +kubebuilder:validation:MaxLength=253
522
- // +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])?)*(\.\*)? $`
523
525
type Hostname string
524
526
525
527
// PreciseHostname is the fully qualified domain name of a network host. This
You can’t perform that action at this time.
0 commit comments