parent
540e84ef09
commit
9137abdabf
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue