- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ValidateMeshConfigProxyConfig (0.2 sec)
-
pkg/kube/inject/validate.go
config := mesh.DefaultProxyConfig() if err := protomarshal.ApplyYAML(value, config); err != nil { return fmt.Errorf("failed to convert to apply proxy config: %v", err) } return agent.ValidateMeshConfigProxyConfig(config) } func validateAnnotations(annotations map[string]string) (err error) { for name, value := range annotations { if v, ok := AnnotationValidation[name]; ok { if e := v(value); e != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 5.9K bytes - Viewed (0) -
pilot/cmd/pilot-agent/config/config.go
if err != nil { log.Warnf("resolve StatsdUdpAddress failed: %v", err) proxyConfig.StatsdUdpAddress = "" } else { proxyConfig.StatsdUdpAddress = addr } } if err := agent.ValidateMeshConfigProxyConfig(proxyConfig); err != nil { return nil, err } return applyAnnotations(proxyConfig, annotations), nil } // getMeshConfig gets the mesh config to use for proxy configuration
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 6.4K bytes - Viewed (0) -
pkg/config/validation/agent/validation.go
} if settings.PrivateKey == "" { errs = AppendErrors(errs, fmt.Errorf("private key required for mutual tls")) } } return } // ValidateMeshConfigProxyConfig checks that the mesh config is well-formed func ValidateMeshConfigProxyConfig(config *meshconfig.ProxyConfig) (errs error) { if config.ConfigPath == "" { errs = multierror.Append(errs, errors.New("config path must be set")) }
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/mesh/mesh_test.go
assert.NoError(t, protomarshal.ApplyYAML(tt.result, want)) assert.Equal(t, mc.GetDefaultConfig(), want) }) } } func TestDefaultProxyConfig(t *testing.T) { if err := agent.ValidateMeshConfigProxyConfig(mesh.DefaultProxyConfig()); err != nil { t.Errorf("validation of default proxy config failed with %v", err) } } func TestDefaultMeshConfig(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 11.7K bytes - Viewed (0) -
pkg/config/validation/agent/validation_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 39.1K bytes - Viewed (0)