- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 137 for GV (0.02 sec)
-
staging/src/k8s.io/apiserver/pkg/server/deleted_kinds_test.go
t.Run(tt.name, func(t *testing.T) { gv := schema.GroupVersion{Group: "mygroup", Version: "myversion"} convertor := &dummyConvertor{} if actual := tt.resourceExpirationEvaluator.shouldServe(gv, convertor, tt.restStorage); actual != tt.expected { t.Errorf("shouldServe() = %v, want %v", actual, tt.expected) } if !reflect.DeepEqual(convertor.called, gv) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 14 00:05:53 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/registry/admissionregistration/resolver/resolver.go
} func (d *discoveryResourceResolver) Resolve(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error) { gv := gvk.GroupVersion() // TODO: refactor this into an efficient gvk --> gvr resolver that remembers hits and re-resolves group/version info on misses resources, err := d.client.ServerResourcesForGroupVersion(gv.String()) if err != nil { return schema.GroupVersionResource{}, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 21:29:56 UTC 2022 - 2.2K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/common.go
func MarshalKubeadmConfigObject(obj runtime.Object, gv schema.GroupVersion) ([]byte, error) { switch internalcfg := obj.(type) { case *kubeadmapi.InitConfiguration: return MarshalInitConfigurationToBytes(internalcfg, gv) default: return kubeadmutil.MarshalToYamlForCodecs(obj, gv, kubeadmscheme.Codecs) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 11:04:08 UTC 2024 - 18.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/codec.go
// Kind may be empty in the provided group kind, in which case any kind will match. func NewMultiGroupVersioner(gv schema.GroupVersion, groupKinds ...schema.GroupKind) GroupVersioner { if len(groupKinds) == 0 || (len(groupKinds) == 1 && groupKinds[0].Group == gv.Group) { return gv } return multiGroupVersioner{target: gv, acceptedGroupKinds: groupKinds} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 03:20:30 UTC 2023 - 12.1K bytes - Viewed (0) -
cmd/kubeadm/app/util/marshal.go
func MarshalToYaml(obj runtime.Object, gv schema.GroupVersion) ([]byte, error) { return MarshalToYamlForCodecs(obj, gv, clientsetscheme.Codecs) } // MarshalToYamlForCodecs marshals an object into yaml using the specified codec // TODO: Is specifying the gv really needed here? // TODO: Can we support json out of the box easily here?
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.8K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/proxy/proxy.go
return nil } gv := schema.GroupVersion{Group: "", Version: "v1"} if saBytes, err = kubeadmutil.MarshalToYaml(sa, gv); err != nil { return err } gv = schema.GroupVersion{Group: "rbac.authorization.k8s.io", Version: "v1"} if crbBytes, err = kubeadmutil.MarshalToYaml(crb, gv); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 13:23:44 UTC 2023 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.go
if !v.Served { continue } // If there is any Served version, that means the group should show up in discovery foundGroup = true gv := metav1.GroupVersion{Group: crd.Spec.Group, Version: v.Name} if !versionsForDiscoveryMap[gv] { versionsForDiscoveryMap[gv] = true apiVersionsForDiscovery = append(apiVersionsForDiscovery, metav1.GroupVersionForDiscovery{ GroupVersion: crd.Spec.Group + "/" + v.Name,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 21 11:40:03 UTC 2024 - 12.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/routes/openapi.go
gvName := t.RootPath()[1:] grouped[gvName] = []*restful.WebService{t} } for gv, ws := range grouped { spec, err := builder3.BuildOpenAPISpecFromRoutes(restfuladapter.AdaptWebServices(ws), oa.V3Config) if err != nil { klog.Errorf("Failed to build OpenAPI v3 for group %s, %q", gv, err) } openAPIVersionedService.UpdateGroupVersion(gv, spec) } return openAPIVersionedService
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 16 19:05:13 UTC 2023 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/notfoundhandler/not_found_handler.go
} err.ErrStatus.Details.RetryAfterSeconds = int32(5) gv := schema.GroupVersion{Group: "unknown", Version: "unknown"} requestInfo, ok := apirequest.RequestInfoFrom(req.Context()) if ok { gv.Group = requestInfo.APIGroup gv.Version = requestInfo.APIVersion } responsewriters.ErrorNegotiated(err, h.serializer, gv, rw, req) return } http.NotFound(rw, req)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 21 13:25:33 UTC 2021 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/request.go
ContentType: runtime.ContentTypeJSON, } } // LogResponseObject fills in the response object into an audit event. The passed runtime.Object // will be converted to the given gv. func LogResponseObject(ctx context.Context, obj runtime.Object, gv schema.GroupVersion, s runtime.NegotiatedSerializer) { ae := AuditEventFrom(ctx) if ae == nil || ae.Level.Less(auditinternal.LevelMetadata) { return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 9K bytes - Viewed (0)