From 9137abdabf4acd8c22f9598b071606c63c10abda Mon Sep 17 00:00:00 2001 From: icechen Date: Sun, 9 Jan 2022 22:23:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/api/deploy/deoloy.go | 6 ++++++ template/service/deploy/deoloy.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/template/api/deploy/deoloy.go b/template/api/deploy/deoloy.go index 02d2dd6..174fed0 100644 --- a/template/api/deploy/deoloy.go +++ b/template/api/deploy/deoloy.go @@ -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 { diff --git a/template/service/deploy/deoloy.go b/template/service/deploy/deoloy.go index 8be2441..e937d13 100644 --- a/template/service/deploy/deoloy.go +++ b/template/service/deploy/deoloy.go @@ -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 {