From 1ba2e83bc70af8f378b45984339ffa7e83e634ee Mon Sep 17 00:00:00 2001 From: Richard87 Date: Wed, 5 Jun 2024 11:02:48 +0200 Subject: [PATCH] lowercase trigger name --- pkg/apis/radix/v1/radixhorizontalscalingtypes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/radix/v1/radixhorizontalscalingtypes.go b/pkg/apis/radix/v1/radixhorizontalscalingtypes.go index 5c2aad4b4..0aa5edab4 100644 --- a/pkg/apis/radix/v1/radixhorizontalscalingtypes.go +++ b/pkg/apis/radix/v1/radixhorizontalscalingtypes.go @@ -175,7 +175,7 @@ func (c *RadixHorizontalScaling) NormalizeConfig() *RadixHorizontalScaling { if c.RadixHorizontalScalingResources != nil && len(config.Triggers) == 0 { if c.RadixHorizontalScalingResources.Cpu != nil && c.RadixHorizontalScalingResources.Cpu.AverageUtilization != nil { config.Triggers = append(config.Triggers, RadixHorizontalScalingTrigger{ - Name: "CPU", + Name: "cpu", Cpu: &RadixHorizontalScalingCPUTrigger{ Value: int(*c.RadixHorizontalScalingResources.Cpu.AverageUtilization), }, @@ -184,7 +184,7 @@ func (c *RadixHorizontalScaling) NormalizeConfig() *RadixHorizontalScaling { if c.RadixHorizontalScalingResources.Memory != nil && c.RadixHorizontalScalingResources.Memory.AverageUtilization != nil { config.Triggers = append(config.Triggers, RadixHorizontalScalingTrigger{ - Name: "Memory", + Name: "memory", Memory: &RadixHorizontalScalingMemoryTrigger{ Value: int(*c.RadixHorizontalScalingResources.Memory.AverageUtilization), },