- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for getApiVersion (0.28 sec)
-
staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go
if err != nil { t.Fatal(err) } if obj.GetName() != "mytest" { t.Fatalf("expected mytest, got %s", obj.GetName()) } if obj.GetAPIVersion() != apiVersion { t.Fatalf("expected %s, got %s", apiVersion, obj.GetAPIVersion()) } if obj.GetKind() != kind { t.Fatalf("expected %s, got %s", kind, obj.GetKind()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 16.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go
// will be present for: get, update, delete GetName() string // The group of the resource, if a request is for a REST object. GetAPIGroup() string // GetAPIVersion returns the version of the group requested, if a request is for a REST object. GetAPIVersion() string // IsResourceRequest returns true for requests to API resources, like /api/v1/nodes, // and false for non-resource endpoints like /api, /healthz
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 14:36:14 UTC 2023 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go
GetUser() user.Info GetVerb() string IsReadOnly() bool GetNamespace() string GetResource() string GetSubresource() string GetName() string GetAPIGroup() string GetAPIVersion() string IsResourceRequest() bool GetPath() string })(nil) // The user info accessors known to cache key construction. If this fails to compile, the cache // implementation may need to be updated.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 12 18:58:24 UTC 2024 - 3.6K bytes - Viewed (0) -
plugin/pkg/admission/certificates/approval/admission_test.go
} if a.GetAPIGroup() != "certificates.k8s.io" { return authorizer.DecisionDeny, fmt.Sprintf("unrecognised groupName '%s'", a.GetAPIGroup()), nil } if a.GetAPIVersion() != "*" { return authorizer.DecisionDeny, fmt.Sprintf("unrecognised apiVersion '%s'", a.GetAPIVersion()), nil } if a.GetResource() != "signers" { return authorizer.DecisionDeny, fmt.Sprintf("unrecognised resource '%s'", a.GetResource()), nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 27 15:50:14 UTC 2020 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/lastappliedmanager.go
return nil, fmt.Errorf("failed to decode last applied obj: %v in '%s'", err, lastApplied) } if lastAppliedObj.GetAPIVersion() != f.groupVersion.String() { return nil, fmt.Errorf("expected version of last applied to match live object '%s', but got '%s': %v", f.groupVersion.String(), lastAppliedObj.GetAPIVersion(), err) } lastAppliedObjTyped, err := f.typeConverter.ObjectToTyped(lastAppliedObj) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list.go
// decodes JSON when passed to Go's standard JSON library. func (u *UnstructuredList) UnmarshalJSON(b []byte) error { _, _, err := UnstructuredJSONScheme.Decode(b, nil, u) return err } func (u *UnstructuredList) GetAPIVersion() string { return getNestedString(u.Object, "apiVersion") } func (u *UnstructuredList) SetAPIVersion(version string) { u.setNestedField(version, "apiVersion") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 04:46:35 UTC 2023 - 6.3K bytes - Viewed (0) -
plugin/pkg/admission/certificates/signing/admission_test.go
} if a.GetAPIGroup() != "certificates.k8s.io" { return authorizer.DecisionDeny, fmt.Sprintf("unrecognised groupName '%s'", a.GetAPIGroup()), nil } if a.GetAPIVersion() != "*" { return authorizer.DecisionDeny, fmt.Sprintf("unrecognised apiVersion '%s'", a.GetAPIVersion()), nil } if a.GetResource() != "signers" { return authorizer.DecisionDeny, fmt.Sprintf("unrecognised resource '%s'", a.GetResource()), nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 28 16:20:40 UTC 2020 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/validator.go
allErrs = append(allErrs, field.Invalid(field.NewPath("kind"), typeAccessor.GetKind(), fmt.Sprintf("must be %v", a.kind.Kind))) } if typeAccessor.GetAPIVersion() != a.kind.Group+"/"+a.kind.Version { allErrs = append(allErrs, field.Invalid(field.NewPath("apiVersion"), typeAccessor.GetAPIVersion(), fmt.Sprintf("must be %v", a.kind.Group+"/"+a.kind.Version))) } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 14:00:05 UTC 2024 - 7.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/storage_factory.go
func objectTypeToArgs(obj runtime.Object) []interface{} { // special-case unstructured objects that tell us their apiVersion/kind if u, isUnstructured := obj.(*unstructured.Unstructured); isUnstructured { if apiVersion, kind := u.GetAPIVersion(), u.GetKind(); len(apiVersion) > 0 && len(kind) > 0 { return []interface{}{"apiVersion", apiVersion, "kind", kind} } } // otherwise just return the type return []interface{}{"type", fmt.Sprintf("%T", obj)}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors.go
var errMsg string if len(reason) == 0 { errMsg = fmt.Sprintf("%s", msg) } else { errMsg = fmt.Sprintf("%s: %s", msg, reason) } gv := schema.GroupVersion{Group: attributes.GetAPIGroup(), Version: attributes.GetAPIVersion()} gr := schema.GroupResource{Group: attributes.GetAPIGroup(), Resource: attributes.GetResource()} ErrorNegotiated(apierrors.NewForbidden(gr, attributes.GetName(), fmt.Errorf(errMsg)), s, gv, w, req) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 21 16:18:47 UTC 2018 - 2.8K bytes - Viewed (0)