- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for TestOnlyStaticRESTMapper (0.69 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/meta/testrestmapper/test_restmapper.go
*/ package testrestmapper import ( "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/sets" ) // TestOnlyStaticRESTMapper returns a union RESTMapper of all known types with priorities chosen in the following order: // 1. legacy kube group preferred version, extensions preferred version, metrics preferred version, legacy
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 06 09:07:02 UTC 2023 - 6.5K bytes - Viewed (0) -
pkg/controller/validatingadmissionpolicystatus/controller_test.go
typeChecker := &validatingadmissionpolicy.TypeChecker{ SchemaResolver: resolver.NewDefinitionsSchemaResolver(openapi.GetOpenAPIDefinitions, scheme.Scheme), RestMapper: testrestmapper.TestOnlyStaticRESTMapper(scheme.Scheme), } controller, err := NewController( informerFactory.Admissionregistration().V1().ValidatingAdmissionPolicies(), client.AdmissionregistrationV1().ValidatingAdmissionPolicies(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/controller/podautoscaler/metrics/client_test.go
}, } metrics.Items = append(metrics.Items, metric) } return true, &metrics, nil } else { name := getForAction.GetName() mapper := testrestmapper.TestOnlyStaticRESTMapper(legacyscheme.Scheme) assert.NotNil(t, tc.singleObject, "should have only requested a single-object metric when we asked for metrics for a single object")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 09 02:34:54 UTC 2021 - 16.4K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go
} func newDefaultBuilderWith(fakeClientFn FakeClientFunc) *Builder { return NewFakeBuilder( fakeClientFn, func() (meta.RESTMapper, error) { return testrestmapper.TestOnlyStaticRESTMapper(scheme.Scheme), nil }, func() (restmapper.CategoryExpander, error) { return FakeCategoryExpander, nil }). WithScheme(scheme.Scheme, scheme.Scheme.PrioritizedVersionsAllGroups()...) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 11:58:41 UTC 2023 - 56.1K bytes - Viewed (0) -
pkg/controller/garbagecollector/garbagecollector_test.go
} func TestGarbageCollectorConstruction(t *testing.T) { config := &restclient.Config{} tweakableRM := meta.NewDefaultRESTMapper(nil) rm := &testRESTMapper{meta.MultiRESTMapper{tweakableRM, testrestmapper.TestOnlyStaticRESTMapper(legacyscheme.Scheme)}} metadataClient, err := metadata.NewForConfig(config) if err != nil { t.Fatal(err) } podResource := map[schema.GroupVersionResource]struct{}{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 111.6K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
} metrics.Items = append(metrics.Items, podMetric) } return true, metrics, nil } name := getForAction.GetName() mapper := testrestmapper.TestOnlyStaticRESTMapper(legacyscheme.Scheme) metrics := &cmapi.MetricValueList{} var matchedTarget *autoscalingv2.MetricSpec for i, target := range tc.metricsTarget {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0) -
pkg/controller/disruption/disruption_test.go
informerFactory.Apps().V1().ReplicaSets(), informerFactory.Apps().V1().Deployments(), informerFactory.Apps().V1().StatefulSets(), coreClient, testrestmapper.TestOnlyStaticRESTMapper(scheme), fakeScaleClient, fakeDiscovery, fakeClock, stalePodDisruptionTimeout, ) dc.getUpdater = func() updater { return ps.Set } dc.podListerSynced = alwaysReady
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator_test.go
} metrics.Items = append(metrics.Items, podMetric) } return true, &metrics, nil } name := getForAction.GetName() mapper := testrestmapper.TestOnlyStaticRESTMapper(legacyscheme.Scheme) metrics := &cmapi.MetricValueList{} assert.NotNil(t, tc.metric.singleObject, "should have only requested a single-object metric when calling GetObjectMetricReplicas")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 68.4K bytes - Viewed (0)