- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TestMapping (0.2 sec)
-
plugin/pkg/admission/gc/gc_admission_test.go
panic("test failed") } func (r *neverReturningRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) { // this ok because if the test works, this method should never be called. panic("test failed") } func (r *neverReturningRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) { // this ok because if the test works, this method should never be called.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal.go
// resource with the given name and namespace, trying each RESTMapping // in turn until a working one is found. If none work, the first error // is returned. It returns both the scale, as well as the group-resource from // the working mapping. func (a *HorizontalController) scaleForResourceMappings(ctx context.Context, namespace, name string, mappings []*apimeta.RESTMapping) (*autoscalingv1.Scale, schema.GroupResource, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
pkg/controller/disruption/disruption.go
if err != nil { return nil, err } gk := schema.GroupKind{ Group: gv.Group, Kind: controllerRef.Kind, } mapping, err := dc.mapper.RESTMapping(gk, gv.Version) if err != nil { return nil, err } gr := mapping.Resource.GroupResource() scale, err := dc.scaleNamespacer.Scales(namespace).Get(ctx, gr, controllerRef.Name, metav1.GetOptions{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 36.1K bytes - Viewed (0) -
pkg/kube/client.go
obj := &unstructured.Unstructured{} _, gvk, err := decUnstructured.Decode([]byte(cfg), nil, obj) if err != nil { return nil, nil, err } mapping, err := c.mapper.RESTMapping(gvk.GroupKind(), gvk.Version) if err != nil { return nil, nil, fmt.Errorf("mapping: %v", err) } var dr dynamic.ResourceInterface if mapping.Scope.Name() == meta.RESTScopeNameNamespace {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 39K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
gk := schema.FromAPIVersionAndKind(target.Object.DescribedObject.APIVersion, target.Object.DescribedObject.Kind).GroupKind() mapping, err := mapper.RESTMapping(gk) if err != nil { t.Logf("unable to get mapping for %s: %v", gk.String(), err) continue } groupResource := mapping.Resource.GroupResource()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0)