Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestOnlyStaticRESTMapper (0.38 sec)

  1. 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)
  2. 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)
Back to top