Skip to content

Commit

Permalink
fix: dangerous typo
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jun 25, 2024
1 parent 32854e6 commit 3fbe212
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controller/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ func getTargetRecommandations(vpaResource *vpa.VerticalPodAutoscaler, vcfg *VpaW
}
switch vcfg.GetRequestMemoryApplyTarget(containerName) {
case ApplyTargetFrugal:
recommandation.Cpu = containerRecommendation.LowerBound.Memory()
recommandation.Memory = containerRecommendation.LowerBound.Memory()
case ApplyTargetBalanced:
recommandation.Cpu = containerRecommendation.Target.Memory()
recommandation.Memory = containerRecommendation.Target.Memory()
case ApplyTargetPeak:
recommandation.Cpu = containerRecommendation.UpperBound.Memory()
recommandation.Memory = containerRecommendation.UpperBound.Memory()
}
recommandations = append(recommandations, recommandation)
}
Expand Down

0 comments on commit 3fbe212

Please sign in to comment.