Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for MetricSpec (0.58 sec)

  1. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2beta2/metricspec.go

    	External          *ExternalMetricSourceApplyConfiguration          `json:"external,omitempty"`
    }
    
    // MetricSpecApplyConfiguration constructs an declarative configuration of the MetricSpec type for use with
    // apply.
    func MetricSpec() *MetricSpecApplyConfiguration {
    	return &MetricSpecApplyConfiguration{}
    }
    
    // WithType sets the Type field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2/metricspec.go

    	External          *ExternalMetricSourceApplyConfiguration          `json:"external,omitempty"`
    }
    
    // MetricSpecApplyConfiguration constructs an declarative configuration of the MetricSpec type for use with
    // apply.
    func MetricSpec() *MetricSpecApplyConfiguration {
    	return &MetricSpecApplyConfiguration{}
    }
    
    // WithType sets the Type field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 09 02:34:54 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2beta1/metricspec.go

    	External          *ExternalMetricSourceApplyConfiguration          `json:"external,omitempty"`
    }
    
    // MetricSpecApplyConfiguration constructs an declarative configuration of the MetricSpec type for use with
    // apply.
    func MetricSpec() *MetricSpecApplyConfiguration {
    	return &MetricSpecApplyConfiguration{}
    }
    
    // WithType sets the Type field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  4. pkg/apis/autoscaling/v1/conversion_test.go

    	}{
    		{
    			"TestConversionWithCPUAverageValueAndUtilizationBoth1",
    			args{
    				in: &autoscaling.HorizontalPodAutoscalerSpec{
    					MinReplicas: utilpointer.Int32(1),
    					MaxReplicas: 3,
    					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: Sun Jan 08 12:14:37 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. pkg/apis/autoscaling/v2beta1/defaults.go

    		obj.Spec.MinReplicas = pointer.Int32(1)
    	}
    
    	if len(obj.Spec.Metrics) == 0 {
    		utilizationDefaultVal := int32(autoscaling.DefaultCPUUtilization)
    		obj.Spec.Metrics = []autoscalingv2beta1.MetricSpec{
    			{
    				Type: autoscalingv2beta1.ResourceMetricSourceType,
    				Resource: &autoscalingv2beta1.ResourceMetricSource{
    					Name:                     v1.ResourceCPU,
    					TargetAverageUtilization: &utilizationDefaultVal,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 15 06:03:59 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/helper_test.go

    	"github.com/stretchr/testify/assert"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	statsapi "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    )
    
    func TestCustomMetrics(t *testing.T) {
    	spec := []cadvisorapiv1.MetricSpec{
    		{
    			Name:   "qos",
    			Type:   cadvisorapiv1.MetricGauge,
    			Format: cadvisorapiv1.IntType,
    			Units:  "per second",
    		},
    		{
    			Name:   "cpuLoad",
    			Type:   cadvisorapiv1.MetricCumulative,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 22 16:23:28 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  7. pkg/apis/autoscaling/v2/defaults.go

    	if obj.Spec.MinReplicas == nil {
    		obj.Spec.MinReplicas = pointer.Int32(1)
    	}
    
    	if len(obj.Spec.Metrics) == 0 {
    		utilizationDefaultVal := int32(autoscaling.DefaultCPUUtilization)
    		obj.Spec.Metrics = []autoscalingv2.MetricSpec{
    			{
    				Type: autoscalingv2.ResourceMetricSourceType,
    				Resource: &autoscalingv2.ResourceMetricSource{
    					Name: v1.ResourceCPU,
    					Target: autoscalingv2.MetricTarget{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 15 06:03:59 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  8. operator/pkg/apis/istio/v1alpha1/deepcopy_test.go

    	x := &v1alpha12.ResourceMetricSource{}
    	err := yaml.UnmarshalStrict([]byte("targetAverageValue: 100m"), x)
    	t.Log(x)
    	if err != nil {
    		t.Fatal(err)
    	}
    	y := &v1alpha12.MetricSpec{}
    	err = yaml.UnmarshalStrict([]byte(`
    type: Resource
    resource:
      targetAverageValue: 100m`), y)
    	t.Log(y)
    	if err != nil {
    		t.Fatal(err)
    	}
    	z := &v1alpha12.HorizontalPodAutoscalerSpec{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 05 23:34:13 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  9. pkg/apis/autoscaling/fuzzer/fuzzer.go

    			var objMetricID autoscaling.MetricIdentifier
    			c.Fuzz(&podMetricID)
    			c.Fuzz(&objMetricID)
    
    			targetUtilization := int32(c.RandUint64())
    			averageValue := randomQuantity()
    			s.Metrics = []autoscaling.MetricSpec{
    				{
    					Type: autoscaling.PodsMetricSourceType,
    					Pods: &autoscaling.PodsMetricSource{
    						Metric: podMetricID,
    						Target: autoscaling.MetricTarget{
    							Type:         autoscaling.AverageValueMetricType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 15 06:03:59 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  10. pkg/apis/autoscaling/v2beta2/defaults.go

    		obj.Spec.MinReplicas = pointer.Int32(1)
    	}
    
    	if len(obj.Spec.Metrics) == 0 {
    		utilizationDefaultVal := int32(autoscaling.DefaultCPUUtilization)
    		obj.Spec.Metrics = []autoscalingv2beta2.MetricSpec{
    			{
    				Type: autoscalingv2beta2.ResourceMetricSourceType,
    				Resource: &autoscalingv2beta2.ResourceMetricSource{
    					Name: v1.ResourceCPU,
    					Target: autoscalingv2beta2.MetricTarget{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 15 06:03:59 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top