- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ValidateEgressSelectorConfiguration (0.42 sec)
-
staging/src/k8s.io/apiserver/pkg/server/egressselector/config_test.go
for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) { errs := ValidateEgressSelectorConfiguration(tc.contents) if !tc.expectError && len(errs) != 0 { t.Errorf("Calling ValidateEgressSelectorConfiguration expected no error, got %v", errs) } else if tc.expectError && len(errs) == 0 { t.Errorf("Calling ValidateEgressSelectorConfiguration expected error, got no error") } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 15.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/egressselector/config.go
// we got an error where the decode wasn't related to a missing type return nil, err } return internalConfig, nil } // ValidateEgressSelectorConfiguration checks the apiserver.EgressSelectorConfiguration for // common configuration errors. It will return error for problems such as configuring mtls/cert
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/egress_selector.go
} npConfig, err := egressselector.ReadEgressSelectorConfiguration(o.ConfigFile) if err != nil { return fmt.Errorf("failed to read egress selector config: %v", err) } errs := egressselector.ValidateEgressSelectorConfiguration(npConfig) if len(errs) > 0 { return fmt.Errorf("failed to validate egress selector configuration: %v", errs.ToAggregate()) } cs, err := egressselector.NewEgressSelector(npConfig) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 01 11:41:59 UTC 2021 - 3K bytes - Viewed (0)