ls -al
+if [ -z "$POA_SA_SERVER_URL" ]; then
+ POA_SA_SERVER_URL="http://poa-sa-svc.poa.svc.cluster.local:8443"
+fi
+
+echo "POA_SA_SERVER_URL2=${POA_SA_SERVER_URL}"
+
+
# user-data-service-poa.v1.yaml
-curl -i -s -X DELETE 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/user'
+curl -i -s -X DELETE "${POA_SA_SERVER_URL}/v1/services/user"
# 1. 创建服务
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services' -H 'Content-Type: application/json' -d '{"id": "user", "origin": "http://user-data-service-poa-svc.user-data-service.svc.cluster.local:8080", "name": "用户服务", "description": "用户服务"}'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services" -H 'Content-Type: application/json' -d '{"id": "user", "origin": "http://user-data-service-poa-svc.user-data-service.svc.cluster.local:8080", "name": "用户服务", "description": "用户服务"}'
# 2. 创建版本
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/user/apiVersions/v1'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/user/apiVersions/v1"
# 3. 上传OAS Yaml
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/user/apiVersions/v1/apiSpecs' -H 'Content-Type: application/yaml' --data-binary @user-data-service-poa.v1.yaml
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/user/apiVersions/v1/apiSpecs" -H 'Content-Type: application/yaml' --data-binary @user-data-service-poa.v1.yaml
# 4. 发布版本
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/user/apiVersions/v1/publish'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/user/apiVersions/v1/publish"
# user-authorization-service-poa.v1.yaml
-curl -i -s -X DELETE 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/authz'
+curl -i -s -X DELETE "${POA_SA_SERVER_URL}/v1/services/authz"
# 1. 创建服务
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services' -H 'Content-Type: application/json' -d '{"id": "authz", "origin": "http://user-authorization-poa-svc.user-authorization-service.svc.cluster.local:8080", "name": "授权服务", "description": "授权服务"}'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services' -H 'Content-Type: application/json" -d '{"id": "authz", "origin": "http://user-authorization-poa-svc.user-authorization-service.svc.cluster.local:8080", "name": "授权服务", "description": "授权服务"}'
# 2. 创建版本
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/authz/apiVersions/v1'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/authz/apiVersions/v1"
# 3. 上传OAS Yaml
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/authz/apiVersions/v1/apiSpecs' -H 'Content-Type: application/yaml' --data-binary @user-authorization-service-poa.v1.yaml
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/authz/apiVersions/v1/apiSpecs" -H 'Content-Type: application/yaml' --data-binary @user-authorization-service-poa.v1.yaml
# 4. 发布版本
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/authz/apiVersions/v1/publish'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/authz/apiVersions/v1/publish"
# communicate-center-poa.v1.yaml
-curl -i -s -X DELETE 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/communicate'
+curl -i -s -X DELETE "${POA_SA_SERVER_URL}/v1/services/communicate"
# 1. 创建服务
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services' -H 'Content-Type: application/json' -d '{"id": "communicate", "origin": "http://communicate-center-poa-svc.communicate-center.svc.cluster.local:8080", "name": "通信服务", "description": "通信服务"}'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services' -H 'Content-Type: application/json" -d '{"id": "communicate", "origin": "http://communicate-center-poa-svc.communicate-center.svc.cluster.local:8080", "name": "通信服务", "description": "通信服务"}'
# 2. 创建版本
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/communicate/apiVersions/v1'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/communicate/apiVersions/v1"
# 3. 上传OAS Yaml
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/communicate/apiVersions/v1/apiSpecs' -H 'Content-Type: application/yaml' --data-binary @communicate-center-poa.v1.yaml
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/communicate/apiVersions/v1/apiSpecs" -H 'Content-Type: application/yaml' --data-binary @communicate-center-poa.v1.yaml
# 4. 发布版本
-curl -i -s -X POST 'http://poa-sa-svc.poa.svc.cluster.local:8443/v1/services/communicate/apiVersions/v1/publish'
+curl -i -s -X POST "${POA_SA_SERVER_URL}/v1/services/communicate/apiVersions/v1/publish"