Skip to content

Commit 30da081

Browse files
[Workflow] Update Swagger REST API doc
2 parents fa19bc5 + 0270569 commit 30da081

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/interface/rest/docs/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3854,7 +3854,7 @@ const docTemplate = `{
38543854
},
38553855
"/ns/{nsId}/k8sMultiClusterDynamic": {
38563856
"post": {
3857-
"description": "(PoC API. For developers only, and do not use in production.)\nCreate multiple K8sClusters in parallel from common spec and image.\nIf namePrefix is provided, cluster names will be auto-generated as '{namePrefix}-{csp}-{number}' (e.g., 'across-aws-1', 'across-alibaba-2').\n\nIf namePrefix is not provided, each cluster must have a name specified.\n\n**Example request body:**\n` + "`" + `` + "`" + `` + "`" + `json\n{\n\"namePrefix\": \"across\",\n\"clusters\": [\n{\n\"imageId\": \"default\",\n\"specId\": \"aws+ap-northeast-2+t3a.xlarge\"\n},\n{\n\"imageId\": \"default\",\n\"specId\": \"aws+ap-northeast-3+t3.xlarge\"\n},\n{\n\"imageId\": \"ubuntu_22_04_x64_20G_alibase_20251103.vhd\",\n\"specId\": \"alibaba+ap-northeast-2+ecs.t6-c1m4.xlarge\"\n},\n{\n\"imageId\": \"https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-2204-jammy-v20251120\",\n\"specId\": \"gcp+asia-northeast3+e2-highmem-4\"\n}\n]\n}\n` + "`" + `` + "`" + `` + "`" + `",
3857+
"description": "(PoC API. For developers only, and do not use in production.)\nCreate multiple K8sClusters in parallel from common spec and image.\nIf namePrefix is provided, cluster names will be auto-generated as '{namePrefix}-{csp}-{number}' (e.g., 'across-aws-1', 'across-alibaba-2').\n\nIf namePrefix is not provided, each cluster must have a name specified.\n\n**Example request body:**\n` + "`" + `` + "`" + `` + "`" + `json\n{\n\"namePrefix\": \"across\",\n\"clusters\": [\n{\n\"imageId\": \"default\",\n\"specId\": \"aws+eu-west-2+t3a.xlarge\"\n},\n{\n\"nodeGroupName\": \"ng-1\",\n\"imageId\": \"default\",\n\"specId\": \"azure+germanywestcentral+standard_b4ms\"\n},\n{\n\"nodeGroupName\": \"ng-1\",\n\"imageId\": \"https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-2204-jammy-v20251120\",\n\"specId\": \"gcp+europe-west9+e2-highmem-4\"\n}\n]\n}\n` + "`" + `` + "`" + `` + "`" + `",
38583858
"consumes": [
38593859
"application/json"
38603860
],

src/interface/rest/docs/swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/interface/rest/docs/swagger.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3058,19 +3058,17 @@ paths:
30583058
"clusters": [
30593059
{
30603060
"imageId": "default",
3061-
"specId": "aws+ap-northeast-2+t3a.xlarge"
3061+
"specId": "aws+eu-west-2+t3a.xlarge"
30623062
},
30633063
{
3064+
"nodeGroupName": "ng-1",
30643065
"imageId": "default",
3065-
"specId": "aws+ap-northeast-3+t3.xlarge"
3066-
},
3067-
{
3068-
"imageId": "ubuntu_22_04_x64_20G_alibase_20251103.vhd",
3069-
"specId": "alibaba+ap-northeast-2+ecs.t6-c1m4.xlarge"
3066+
"specId": "azure+germanywestcentral+standard_b4ms"
30703067
},
30713068
{
3069+
"nodeGroupName": "ng-1",
30723070
"imageId": "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-2204-jammy-v20251120",
3073-
"specId": "gcp+asia-northeast3+e2-highmem-4"
3071+
"specId": "gcp+europe-west9+e2-highmem-4"
30743072
}
30753073
]
30763074
}

0 commit comments

Comments
 (0)