Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for MetricSpec (0.58 sec)

  1. pkg/apis/autoscaling/validation/validation_test.go

    			ScaleTargetRef: autoscaling.CrossVersionObjectReference{
    				Kind: "ReplicationController",
    				Name: "myrc",
    			},
    			MinReplicas: utilpointer.Int32(1),
    			MaxReplicas: 5,
    			Metrics: []autoscaling.MetricSpec{{
    				Type: autoscaling.ResourceMetricSourceType,
    				Resource: &autoscaling.ResourceMetricSource{
    					Name: api.ResourceCPU,
    					Target: autoscaling.MetricTarget{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/horizontal.go

    	} else if metricSpec.Object.Target.Type == autoscalingv2.AverageValueMetricType && metricSpec.Object.Target.AverageValue != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  3. pkg/controller/podautoscaler/horizontal_test.go

    	statusUpdated                bool
    	eventCreated                 bool
    	verifyEvents                 bool
    	useMetricsAPI                bool
    	metricsTarget                []autoscalingv2.MetricSpec
    	expectedDesiredReplicas      int32
    	expectedConditions           []autoscalingv2.HorizontalPodAutoscalerCondition
    	// Channel with names of HPA objects which we have reconciled.
    	processed chan string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  4. pkg/printers/internalversion/printers_test.go

    						Name: "some-rc",
    						Kind: "ReplicationController",
    					},
    					MinReplicas: &minReplicasVal,
    					MaxReplicas: 10,
    					Metrics: []autoscaling.MetricSpec{
    						{
    							Type: autoscaling.ExternalMetricSourceType,
    							External: &autoscaling.ExternalMetricSource{
    								Metric: autoscaling.MetricIdentifier{
    									Name:     "some-external-metric",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/autoscaling/v2/types.go

    	// +optional
    	APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"`
    }
    
    // MetricSpec specifies how to scale based on a single metric
    // (only `type` and one other matching field should be set at once).
    type MetricSpec struct {
    	// type is the type of metric source.  It should be one of "ContainerResource", "External",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/autoscaling/v1/types.go

    	// QPS from loadbalancer running outside of cluster).
    	ExternalMetricSourceType MetricSourceType = "External"
    )
    
    // MetricSpec specifies how to scale based on a single metric
    // (only `type` and one other matching field should be set at once).
    type MetricSpec struct {
    	// type is the type of metric source.  It should be one of "ContainerResource",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  7. pkg/printers/internalversion/printers.go

    		r, err := printDeployment(&list.Items[i], options)
    		if err != nil {
    			return nil, err
    		}
    		rows = append(rows, r...)
    	}
    	return rows, nil
    }
    
    func formatHPAMetrics(specs []autoscaling.MetricSpec, statuses []autoscaling.MetricStatus) string {
    	if len(specs) == 0 {
    		return "<none>"
    	}
    	list := []string{}
    	max := 2
    	more := false
    	count := 0
    	for i, spec := range specs {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  8. pkg/generated/openapi/zz_generated.openapi.go

    										Ref:     ref("k8s.io/api/autoscaling/v2beta1.MetricSpec"),
    									},
    								},
    							},
    						},
    					},
    				},
    				Required: []string{"scaleTargetRef", "maxReplicas"},
    			},
    		},
    		Dependencies: []string{
    			"k8s.io/api/autoscaling/v2beta1.CrossVersionObjectReference", "k8s.io/api/autoscaling/v2beta1.MetricSpec"},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
  9. api/openapi-spec/swagger.json

            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        },
        "io.k8s.api.autoscaling.v2.MetricSpec": {
          "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
          "properties": {
            "containerResource": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
Back to top