Skip to content

Commit

Permalink
lowercase trigger name
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jun 5, 2024
1 parent 7ffd8b1 commit 1ba2e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/radix/v1/radixhorizontalscalingtypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand All @@ -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),
},
Expand Down

0 comments on commit 1ba2e83

Please sign in to comment.