Skip to content

Commit

Permalink
resource test
Browse files Browse the repository at this point in the history
  • Loading branch information
WangDe7 committed Jan 16, 2025
1 parent 9500931 commit 6499e31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cdk8s/cdk8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package cdk8s

import (
"fmt"
"github.com/mss-boot-io/cd-template/pkg/config"
"github.com/mss-boot-io/cd-template/stage"
)
Expand All @@ -18,6 +19,9 @@ func Generate(configPath, stageStr, image string, servicePath []string) {
switch stageStr {
case "dev", "test", "local", "alpha", "beta", "staging":
config.Cfg.Hpa.Enabled = false
fmt.Println("--------------------------------")
fmt.Println(config.Cfg.Resources)
fmt.Println("--------------------------------")
config.Cfg.Resources["requests"] = config.Resource{
CPU: "100m",
Memory: "128Mi",
Expand Down

0 comments on commit 6499e31

Please sign in to comment.