- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateResource (0.09 sec)
-
istioctl/pkg/validate/validate.go
var errs error for key := range un.Object { if _, ok := validFields[key]; !ok { errs = multierror.Append(errs, fmt.Errorf("unknown field %q", key)) } } return errs } func (v *validator) validateResource(istioNamespace, defaultNamespace string, un *unstructured.Unstructured, writer io.Writer) (validation.Warning, error) { g := config.GroupVersionKind{ Group: un.GroupVersionKind().Group,
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 22:27:47 UTC 2024 - 14.3K bytes - Viewed (0) -
istioctl/pkg/validate/validate_test.go
}, } for i, c := range cases { t.Run(fmt.Sprintf("[%v] %v ", i, c.name), func(tt *testing.T) { defer func() { recover() }() v := &validator{} var writer io.Writer warn, err := v.validateResource("istio-system", "", fromYAML(c.in), writer) if (err == nil) != c.valid { tt.Fatalf("unexpected validation result: got %v want %v: err=%v", err == nil, c.valid, err) } if (warn != nil) != c.warn {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 02 16:18:14 UTC 2024 - 21.4K bytes - Viewed (0)