From 37601a03a177746fa767ff4de57b02340b8a77b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 2 Dec 2021 15:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96apollo=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- transform/apollo_migrate.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/transform/apollo_migrate.go b/transform/apollo_migrate.go index 399ec95..4ce8dc8 100644 --- a/transform/apollo_migrate.go +++ b/transform/apollo_migrate.go @@ -13,7 +13,6 @@ import ( "fmt" "io/ioutil" "net/http" - "strings" "github.com/ddliu/go-httpclient" ) @@ -24,17 +23,6 @@ import ( // // Date : 4:06 下午 2021/11/30 func NewApolloMigrate(getAllApolloConfigURL string, appID string, env string, namespace string, cookie map[string]string, header map[string]string) ITransform { - if len(getAllApolloConfigURL) == 0 { - getAllApolloConfigURL = "http://test-apollo.portal.life.ke.com/apps/{APP_ID}/envs/{ENV}/clusters/default/namespaces/{NAMESPACE}/releases/active?page=0&size=1" - replaceMap := map[string]string{ - "{APP_ID}": appID, - "{ENV}": env, - "{NAMESPACE}": namespace, - } - for k, v := range replaceMap { - getAllApolloConfigURL = strings.ReplaceAll(getAllApolloConfigURL, k, v) - } - } if cookie == nil { cookie = make(map[string]string) header = make(map[string]string)