- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for parseYAMLWarnings (0.17 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest.go
if directive == "" { return metav1.FieldValidationWarn } return directive } // parseYAMLWarnings takes the strict decoding errors from the yaml decoder's output // and parses each individual warnings, or leaves the warning as is if // it does not look like a yaml strict decoding error. func parseYAMLWarnings(errString string) []string { var trimmedString string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 17K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
t.Run(tc.name, func(t *testing.T) { obj := &unstructured.Unstructured{Object: map[string]interface{}{}} if err := yaml.UnmarshalStrict([]byte(tc.yaml), &obj.Object); err != nil { parsedErrs := parseYAMLWarnings(err.Error()) if !reflect.DeepEqual(tc.expected, parsedErrs) { t.Fatalf("expected: %v\n, got: %v\n", tc.expected, parsedErrs) } } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0)