1 Star 0 Fork 0

mss-boot-io / cd-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 619 Bytes
一键复制 编辑 原始数据 按行查看 历史
/*
* @Author: lwnmengjing<lwnmengjing@qq.com>
* @Date: 2022/11/1 09:31:56
* @Last Modified by: lwnmengjing<lwnmengjing@qq.com>
* @Last Modified time: 2022/11/1 09:31:56
*/
package main
import (
"flag"
"log"
"github.com/mss-boot-io/cd-template/pkg/config"
"github.com/mss-boot-io/cd-template/stage"
)
var configPath = flag.String("config", "", "config path")
func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
flag.Parse()
config.NewConfig(configPath)
stage.Synth("prod")
config.Cfg.Hpa = false
config.Cfg.Resources = nil
config.Cfg.Replicas = config.Cfg.TestReplicas
stage.Synth("test")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mss-boot-io/cd-template.git
git@gitee.com:mss-boot-io/cd-template.git
mss-boot-io
cd-template
cd-template
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891