- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateFQDN (0.15 sec)
-
pkg/config/validation/agent/validation.go
for tagName, tagVal := range tags { if tagVal == nil { return fmt.Errorf("encountered nil value for custom tag: %s", tagName) } } return nil } // ValidateFQDN checks a fully-qualified domain name func ValidateFQDN(fqdn string) error { if err := CheckDNS1123Preconditions(fqdn); err != nil { return err } return ValidateDNS1123Labels(fqdn) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 30.9K bytes - Viewed (0) -
pkg/config/validation/agent/extensionprovider.go
) func validateExtensionProviderService(service string) error { if service == "" { return fmt.Errorf("service must not be empty") } parts := strings.Split(service, "/") if len(parts) == 1 { if err := ValidateFQDN(service); err != nil { if err2 := ValidateIPAddress(service); err2 != nil { return fmt.Errorf("invalid service fmt %s: %s", service, err2) } } } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 11K bytes - Viewed (0) -
pkg/config/validation/agent/validation_test.go
fqdn: "istio-pilot.istio-system.svc.cluster.local.", valid: true, name: "unambiguous kubernetes FQDN", }, } for _, tt := range tests { tt := tt t.Run(tt.name, func(t *testing.T) { err := ValidateFQDN(tt.fqdn) valid := err == nil if valid != tt.valid { t.Errorf("Expected valid=%v, got valid=%v for %v", tt.valid, valid, tt.fqdn) } }) } } func TestValidatePort(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 39.1K bytes - Viewed (0)