Skip to content

Commit

Permalink
resource configuration is also set for other environments except prod (
Browse files Browse the repository at this point in the history
  • Loading branch information
WangDe7 authored Jan 16, 2025
1 parent f40c945 commit 9500931
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cdk8s/cdk8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ func Generate(configPath, stageStr, image string, servicePath []string) {
switch stageStr {
case "dev", "test", "local", "alpha", "beta", "staging":
config.Cfg.Hpa.Enabled = false
config.Cfg.Resources = nil
config.Cfg.Resources["requests"] = config.Resource{
CPU: "100m",
Memory: "128Mi",
}
config.Cfg.Replicas = config.Cfg.TestReplicas
}
config.Cfg.Image.Path = image
Expand Down

0 comments on commit 9500931

Please sign in to comment.