diff --git a/go_handler/go_handler_template/go_api_test_pipeline.go b/go_handler/go_handler_template/go_api_test_pipeline.go index 0129926..4d3960e 100644 --- a/go_handler/go_handler_template/go_api_test_pipeline.go +++ b/go_handler/go_handler_template/go_api_test_pipeline.go @@ -28,7 +28,7 @@ steps: image: bitsbeats/drone-helm3 settings: kube_api_server: - from_secret: kubernetes_server + from_secret: kubernetes_server_test kube_token: from_secret: kubernetes_token_test kube_certificate: @@ -36,9 +36,9 @@ steps: chart: ./{{ .Root }}/deploy release: api-{{ .Name }}-test wait: true - namespace: {{ .NameSpace }}-test + namespace: {{ .NameSpace }} values: - - nameSpace={{ .NameSpace }}-test + - nameSpace={{ .NameSpace }} - aliasName={{ .AliasName }} - image=reg.icechen.cn/{{ .NameSpace }}/api-{{ .Name }} - imageTag=${DRONE_COMMIT:0:8} diff --git a/go_handler/go_handler_template/go_service_test_pipeline.go b/go_handler/go_handler_template/go_service_test_pipeline.go index 608db00..2ce3974 100644 --- a/go_handler/go_handler_template/go_service_test_pipeline.go +++ b/go_handler/go_handler_template/go_service_test_pipeline.go @@ -28,7 +28,7 @@ steps: image: bitsbeats/drone-helm3 settings: kube_api_server: - from_secret: kubernetes_server + from_secret: kubernetes_server_test kube_token: from_secret: kubernetes_token_test kube_certificate: @@ -36,9 +36,9 @@ steps: chart: ./{{ .Root }}/deploy release: service-{{ .Name }}-test wait: true - namespace: {{ .NameSpace }}-test + namespace: {{ .NameSpace }} values: - - nameSpace={{ .NameSpace }}-test + - nameSpace={{ .NameSpace }} - aliasName={{ .AliasName }} - image=reg.icechen.cn/{{ .NameSpace }}/service-{{ .Name }} - imageTag=${DRONE_COMMIT:0:8}