- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for TestMapping (0.38 sec)
-
src/runtime/pprof/proto_test.go
} } } t.Run("Normal", func(t *testing.T) { f(t, profSelfMapsTests) }) t.Run("WithDeletedFile", func(t *testing.T) { f(t, profSelfMapsTestsWithDeleted) }) } // TestMapping checks the mapping section of CPU profiles // has the HasFunctions field set correctly. If all PCs included // in the samples are successfully symbolized, the corresponding
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 23:21:53 UTC 2024 - 17K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go
return nil, nil } func (doNothingRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) { return nil, nil } func (doNothingRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) { return nil, nil } func (doNothingRESTMapper) ResourceSingularizer(resource string) (singular string, err error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 8.2K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_source.go
// Temporary until we use the dynamic informer factory paramsCRDControllers map[schema.GroupVersionKind]*paramInfo } type paramInfo struct { mapping meta.RESTMapping // When the param is changed, or the informer is done being used, the cancel // func should be called to stop/cleanup the original informer cancelFunc func() // The lister for this param
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 21 23:07:34 UTC 2024 - 15.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go
newPolicyAccessor func(P) PolicyAccessor, newBindingAccessor func(B) BindingAccessor, compileFunc func(P) E, dispatcher dispatcherFactory[PolicyHook[P, B, E]], initialObjects []runtime.Object, paramMappings []meta.RESTMapping, ) (*PolicyTestContext[P, B, E], func(), error) { var Pexample P var Bexample B // Create a fake resource and kind for the provided policy and binding types fakePolicyGVR := schema.GroupVersionResource{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K 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) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go
coolMatcher := matcher if coolMatcher == nil { coolMatcher = generic.NewPolicyMatcher(m) } return validating.NewDispatcher(a, coolMatcher) }, nil, []meta.RESTMapping{ { Resource: paramsGVK.GroupVersion().WithResource("paramsconfigs"), GroupVersionKind: paramsGVK, Scope: meta.RESTScopeNamespace, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 25 01:39:01 UTC 2024 - 63.8K 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)