- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for gk (0.02 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version.go
Kind string } func (gk GroupKind) Empty() bool { return len(gk.Group) == 0 && len(gk.Kind) == 0 } func (gk GroupKind) WithVersion(version string) GroupVersionKind { return GroupVersionKind{Group: gk.Group, Version: version, Kind: gk.Kind} } func (gk GroupKind) String() string { if len(gk.Group) == 0 { return gk.Kind } return gk.Kind + "." + gk.Group }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 30 09:08:59 UTC 2023 - 10.2K bytes - Viewed (0) -
operator/pkg/metrics/resource_counts.go
func AddResource(name string, gk schema.GroupKind) { rc.mu.Lock() defer rc.mu.Unlock() if _, present := rc.resources[gk]; !present { rc.resources[gk] = map[string]struct{}{} } rc.resources[gk][name] = struct{}{} } // RemoveResource removes the resource of given kind to the set of owned objects func RemoveResource(name string, gk schema.GroupKind) { rc.mu.Lock() defer rc.mu.Unlock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 20 18:48:20 UTC 2020 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/multirestmapper.go
// return the first match. func (m MultiRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) { allMappings := []*RESTMapping{} errors := []error{} for _, t := range m { currMapping, err := t.RESTMapping(gk, versions...) // ignore "no match" errors, but any other error percolates back up if IsNoMatchError(err) { continue
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 5.8K bytes - Viewed (0) -
pkg/config/schema/kubetypes/common.go
"istio.io/istio/pkg/ptr" "istio.io/istio/pkg/typemap" ) func MustGVRFromType[T runtime.Object]() schema.GroupVersionResource { if gk, ok := getGvk(ptr.Empty[T]()); ok { gr, ok := gvk.ToGVR(gk) if !ok { panic(fmt.Sprintf("unknown GVR for GVK %v", gk)) } return gr } if rp := typemap.Get[RegisterType[T]](registeredTypes); rp != nil { return (*rp).GetGVR() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/lazy.go
} return o.mapper.ResourcesFor(input) } func (o *lazyObject) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) { if err := o.init(); err != nil { return nil, err } return o.mapper.RESTMapping(gk, versions...) } func (o *lazyObject) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) { if err := o.init(); err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper.go
// version should be used to access the named group/kind. func (m *DefaultRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) { mappings, err := m.RESTMappings(gk, versions...) if err != nil { return nil, err } if len(mappings) == 0 { return nil, &NoKindMatchError{GroupKind: gk, SearchedVersions: versions} } // since we rely on RESTMappings method
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 01:55:47 UTC 2021 - 16.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/codec_test.go
expectKind schema.GroupVersionKind expectedId string }{ { name: "matched preferred group/kind", target: gv("mygroup", "__internal"), preferredKinds: []schema.GroupKind{gk("mygroup", "Foo"), gk("anothergroup", "Bar")}, kinds: []schema.GroupVersionKind{gvk("yetanother", "v1", "Baz"), gvk("anothergroup", "v1", "Bar")}, expectKind: gvk("mygroup", "__internal", "Bar"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 30 06:58:54 UTC 2019 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/schema/group_version_test.go
input string gvk *GroupVersionKind gk GroupKind }{ {input: "Pod", gk: GroupKind{Kind: "Pod"}}, {input: ".apps", gk: GroupKind{Group: "apps"}}, {input: "Pod.", gk: GroupKind{Kind: "Pod"}}, {input: "StatefulSet.apps", gk: GroupKind{Group: "apps", Kind: "StatefulSet"}}, {input: "StatefulSet.v1.apps", gvk: &GroupVersionKind{Group: "apps", Version: "v1", Kind: "StatefulSet"}, gk: GroupKind{Group: "v1.apps", Kind: "StatefulSet"}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 15 01:46:00 UTC 2022 - 7.2K bytes - Viewed (0) -
pkg/kube/controllers/common.go
gv, err := schema.ParseGroupVersion(u.GetAPIVersion()) if err != nil { return res, err } gk := config.GroupVersionKind{ Group: gv.Group, Version: gv.Version, Kind: u.GetKind(), } found, ok := gvk.ToGVR(gk) if !ok { return res, fmt.Errorf("unknown gvk: %v", gk) } return found, nil } // ObjectToGVR extracts the GVR of an unstructured resource. This is useful when using dynamic
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 08:27:29 UTC 2024 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/group_version.go
Group string `json:"group" protobuf:"bytes,1,opt,name=group"` Kind string `json:"kind" protobuf:"bytes,2,opt,name=kind"` } func (gk *GroupKind) String() string { if gk == nil { return "<nil>" } if len(gk.Group) == 0 { return gk.Kind } return gk.Kind + "." + gk.Group } // GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 04 09:55:26 UTC 2021 - 4.8K bytes - Viewed (0)