- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for MetricSpec (0.44 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
pkg/registry/autoscaling/horizontalpodautoscaler/storage/storage_test.go
Spec: autoscaling.HorizontalPodAutoscalerSpec{ ScaleTargetRef: autoscaling.CrossVersionObjectReference{ Kind: "ReplicationController", Name: "myrc", }, 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 12 15:46:12 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/apis/autoscaling/v2beta1/defaults_test.go
) func TestSetDefaultHPA(t *testing.T) { utilizationDefaultVal := int32(autoscaling.DefaultCPUUtilization) defaultReplicas := utilpointer.Int32(1) defaultTemplate := []autoscalingv2beta1.MetricSpec{ { Type: autoscalingv2beta1.ResourceMetricSourceType, Resource: &autoscalingv2beta1.ResourceMetricSource{ Name: v1.ResourceCPU, TargetAverageUtilization: &utilizationDefaultVal, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 6K bytes - Viewed (0)