Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for FromAPIVersionAndKind (0.51 sec)

  1. pkg/controller/podautoscaler/replica_calculator_test.go

    		metrics := &cmapi.MetricValueList{}
    		assert.NotNil(t, tc.metric.singleObject, "should have only requested a single-object metric when calling GetObjectMetricReplicas")
    		gk := schema.FromAPIVersionAndKind(tc.metric.singleObject.APIVersion, tc.metric.singleObject.Kind).GroupKind()
    		mapping, err := mapper.RESTMapping(gk)
    		if err != nil {
    			return true, nil, fmt.Errorf("unable to get mapping for %s: %v", gk.String(), err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/horizontal_test.go

    		var matchedTarget *autoscalingv2.MetricSpec
    		for i, target := range tc.metricsTarget {
    			if target.Type == autoscalingv2.ObjectMetricSourceType && name == target.Object.DescribedObject.Name {
    				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)
    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