Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for MetricSpec (0.24 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/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)
  5. 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)
  6. 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)
  7. pkg/apis/autoscaling/v2beta1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v2beta1.MetricSpec)(nil), (*autoscaling.MetricSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v2beta1_MetricSpec_To_autoscaling_MetricSpec(a.(*v2beta1.MetricSpec), b.(*autoscaling.MetricSpec), scope)
    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*autoscaling.MetricSpec)(nil), (*v2beta1.MetricSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 42.5K bytes
    - Viewed (0)
  8. pkg/apis/autoscaling/v2beta2/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v2beta2.MetricSpec)(nil), (*autoscaling.MetricSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v2beta2_MetricSpec_To_autoscaling_MetricSpec(a.(*v2beta2.MetricSpec), b.(*autoscaling.MetricSpec), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 60.9K bytes
    - Viewed (0)
  9. pkg/apis/autoscaling/v1/zz_generated.conversion.go

    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*v1.MetricSpec)(nil), (*autoscaling.MetricSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_MetricSpec_To_autoscaling_MetricSpec(a.(*v1.MetricSpec), b.(*autoscaling.MetricSpec), scope)
    	}); err != nil {
    		return err
    	}
    	if err := s.AddGeneratedConversionFunc((*autoscaling.MetricSpec)(nil), (*v1.MetricSpec)(nil), func(a, b interface{}, scope conversion.Scope) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 43.7K bytes
    - Viewed (0)
  10. pkg/apis/autoscaling/validation/validation.go

    	return allErrs
    }
    
    func validateMetrics(metrics []autoscaling.MetricSpec, fldPath *field.Path, minReplicas *int32) field.ErrorList {
    	allErrs := field.ErrorList{}
    	hasObjectMetrics := false
    	hasExternalMetrics := false
    
    	for i, metricSpec := range metrics {
    		idxPath := fldPath.Index(i)
    		if targetErrs := validateMetricSpec(metricSpec, idxPath); len(targetErrs) > 0 {
    			allErrs = append(allErrs, targetErrs...)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 25 00:58:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top