- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for IsMissingVersion (0.37 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/error.go
} func (k *missingVersionErr) Error() string { return fmt.Sprintf("Object 'apiVersion' is missing in '%s'", k.data) } // IsMissingVersion returns true if the error indicates that the provided object // is missing a 'Version' field. func IsMissingVersion(err error) bool { if err == nil { return false } _, ok := err.(*missingVersionErr) return ok }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 19 21:24:36 UTC 2021 - 4.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go
metaFactory: stubMetaFactory{gvk: &schema.GroupVersionKind{}}, expectedObj: nil, expectedGVK: &schema.GroupVersionKind{Kind: "k"}, assertOnError: func(t *testing.T, err error) { if !runtime.IsMissingVersion(err) { t.Errorf("expected MissingVersion, got: %v", err) } }, }, { name: "creater error", gvk: &schema.GroupVersionKind{Group: "x", Version: "y", Kind: "z"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 14:57:12 UTC 2024 - 20.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/config.go
} decodedConfig.Plugins[i].Path = absPath } return configProvider{ config: decodedConfig, }, nil } // we got an error where the decode wasn't related to a missing type if !(runtime.IsMissingVersion(err) || runtime.IsMissingKind(err) || runtime.IsNotRegisteredError(err)) { return nil, err } // Only tolerate load errors if the file appears to be one of the two legacy plugin configs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 5.8K bytes - Viewed (0) -
pkg/auth/authorizer/abac/abac.go
trimmed := strings.TrimSpace(string(b)) if len(trimmed) == 0 || strings.HasPrefix(trimmed, "#") { continue } decodedObj, _, err := decoder.Decode(b, nil, nil) if err != nil { if !(runtime.IsMissingVersion(err) || runtime.IsMissingKind(err) || runtime.IsNotRegisteredError(err)) { return nil, policyLoadError{path, i, b, err} } unversionedLines++ // Migrate unversioned policy object oldPolicy := &v0.Policy{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 11 03:11:30 UTC 2021 - 7.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go
t.Errorf("unexpected error: %v", err) } emptyObj.SetGroupVersionKind(schema.GroupVersionKind{Kind: "Test"}) if _, _, err := scheme.ObjectKinds(emptyObj); !runtime.IsMissingVersion(err) { t.Errorf("unexpected error: %v", err) } emptyObj.SetGroupVersionKind(schema.GroupVersionKind{Kind: "Test", Version: "v1"}) if _, _, err := scheme.ObjectKinds(emptyObj); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 38.2K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.9.md
* move IsMissingVersion comments ([#55523](https://github.com/kubernetes/kubernetes/pull/55523), [@chenpengdev](https://github.com/chenpengdev))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 16 10:46:27 UTC 2021 - 313.7K bytes - Viewed (0)