- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 56 for MetricSpec (0.18 sec)
-
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) -
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) -
staging/src/k8s.io/api/autoscaling/v2beta1/generated.pb.go
func (m *MetricSpec) Reset() { *m = MetricSpec{} } func (*MetricSpec) ProtoMessage() {} func (*MetricSpec) Descriptor() ([]byte, []int) { return fileDescriptor_ea74040359c1ed83, []int{10} } func (m *MetricSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MetricSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 142.9K 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) -
staging/src/k8s.io/api/autoscaling/v2beta2/generated.pb.go
var xxx_messageInfo_MetricIdentifier proto.InternalMessageInfo func (m *MetricSpec) Reset() { *m = MetricSpec{} } func (*MetricSpec) ProtoMessage() {} func (*MetricSpec) Descriptor() ([]byte, []int) { return fileDescriptor_1076ab1fac987148, []int{14} } func (m *MetricSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MetricSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 163K bytes - Viewed (0) -
staging/src/k8s.io/api/autoscaling/v2/generated.pb.go
var xxx_messageInfo_MetricIdentifier proto.InternalMessageInfo func (m *MetricSpec) Reset() { *m = MetricSpec{} } func (*MetricSpec) ProtoMessage() {} func (*MetricSpec) Descriptor() ([]byte, []int) { return fileDescriptor_4d5f2c8767749221, []int{14} } func (m *MetricSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MetricSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { b = b[:cap(b)]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 162.9K 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)