feat: 增加app

master v1.0.3
icechen 2022-01-09 22:23:28 +08:00
parent 540e84ef09
commit 9137abdabf
2 changed files with 12 additions and 0 deletions

View File

@ -82,6 +82,12 @@ func GenDeploy(namespace string, api config.Api) error {
return err
}
// application.yaml 文件
err = copyTo("templates/application.yaml", templatesDirPath+"/application.yaml")
if err != nil {
return err
}
// deployment.yaml 文件
err = copyTo("templates/deployment.yaml", templatesDirPath+"/deployment.yaml")
if err != nil {

View File

@ -69,6 +69,12 @@ func GenDeploy(namespace string, service config.Service) error {
return err
}
// application.yaml 文件
err = copyTo("templates/application.yaml", templatesDirPath+"/application.yaml")
if err != nil {
return err
}
// deployment.yaml 文件
err = copyTo("templates/deployment.yaml", templatesDirPath+"/deployment.yaml")
if err != nil {