- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateExportTo (0.26 sec)
-
pkg/config/validation/validation.go
} v = AppendValidation(v, validateSubset(subset)) } v = AppendValidation(v, validateExportTo(cfg.Namespace, rule.ExportTo, false, rule.GetWorkloadSelector() != nil)) v = AppendValidation(v, validateWorkloadSelector(rule.GetWorkloadSelector())) return v.Unwrap() }) func validateExportTo(namespace string, exportTo []string, isServiceEntry bool, isDestinationRuleWithSelector bool) (errs error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0) -
pkg/config/validation/validation_test.go
wantErr: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if err := validateExportTo(tt.namespace, tt.exportTo, tt.isServiceEntry, tt.isDestinationRuleWithSelector); (err != nil) != tt.wantErr { t.Errorf("validateExportTo() error = %v, wantErr %v", err, tt.wantErr) } }) } } func TestValidateTelemetry(t *testing.T) { tests := []struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 03:11:45 UTC 2024 - 196K bytes - Viewed (0)