Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
haijianyang committed Jun 5, 2024
1 parent 745c90c commit ec9ca85
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 141 deletions.
81 changes: 64 additions & 17 deletions cloudtower-api-doc/static/sks-specs/1.4.0-swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"/api/v1/servers/connectivity-probes/:namespace/:name": {
"post": {
"tags": [
"Instances"
"Instance"
],
"summary": "Network connectivity probe on serverInstance.",
"operationId": "instances/connectivity-probes",
Expand Down Expand Up @@ -103,9 +103,9 @@
"/api/v1/servers/labels": {
"get": {
"tags": [
"Instances"
"Instance"
],
"summary": "Get all Ready ServiceInstance label sets.",
"summary": "Get ready ServiceInstance label sets.",
"operationId": "instances/jobs",
"responses": {
"200": {
Expand Down Expand Up @@ -134,7 +134,7 @@
"/api/v1/servers/prepare-environment": {
"get": {
"tags": [
"Instances"
"Instance"
],
"summary": "Download prepare environment command.",
"operationId": "instances/commands",
Expand Down Expand Up @@ -165,9 +165,9 @@
"/clusters": {
"get": {
"tags": [
"Clusters"
"Cluster"
],
"summary": "Get all workload clusters.",
"summary": "Get workload clusters.",
"operationId": "ListClusters",
"parameters": [
{
Expand Down Expand Up @@ -204,7 +204,7 @@
},
"post": {
"tags": [
"Clusters"
"Cluster"
],
"summary": "Create a workload cluster",
"operationId": "CreateCluster",
Expand Down Expand Up @@ -257,7 +257,7 @@
"/clusters/:cluster": {
"get": {
"tags": [
"Clusters"
"Cluster"
],
"summary": "Get a workload cluster.",
"operationId": "GetCluster",
Expand Down Expand Up @@ -296,7 +296,7 @@
},
"put": {
"tags": [
"Clusters"
"Cluster"
],
"summary": "Update a workload cluster.",
"operationId": "UpdateCluster",
Expand Down Expand Up @@ -347,7 +347,7 @@
},
"delete": {
"tags": [
"Clusters"
"Cluster"
],
"summary": "Delete a workload cluster.",
"operationId": "DeleteCluster",
Expand Down Expand Up @@ -390,7 +390,7 @@
"/clusters/:cluster/addons": {
"get": {
"tags": [
"Clusters"
"Cluster"
],
"summary": "Get addons of a workload cluster.",
"operationId": "listClusterAddons",
Expand Down Expand Up @@ -431,7 +431,7 @@
"/clusters/:cluster/kubeconfig": {
"get": {
"tags": [
"Clusters"
"Cluster"
],
"summary": "Get the kubeconfig of a workload cluster.",
"operationId": "GetClusterKubeconfig",
Expand Down Expand Up @@ -472,7 +472,7 @@
"/clusters/{cluster}/proxy/{k8s_url}": {
"get": {
"tags": [
"Workload Clusters"
"Workload Cluster"
],
"summary": "Proxy all requests to the workload kubernetes cluster.",
"description": "The request uri format is like /api/v1/clusters/{cluster}/proxy/{k8s_url}. Support any HTTP method of the proxied API (GET, POST, DELETE, PUT, PATCH, etc.)",
Expand Down Expand Up @@ -875,7 +875,22 @@
"type": "object",
"properties": {
"Format": {
"type": "string"
"type": "string",
"enum": [
"DecimalExponent",
"BinarySI",
"DecimalSI"
],
"x-enum-varnames": [
"DecimalExponent",
"BinarySI",
"DecimalSI"
],
"x-enum-comments": {
"BinarySI": "e.g., 12Mi (12 * 2^20)",
"DecimalExponent": "e.g., 12e6",
"DecimalSI": "e.g., 12M (12 * 10^6)"
}
}
}
},
Expand Down Expand Up @@ -2533,6 +2548,33 @@
}
}
},
"v1alpha1.KubeSmartClusterPhase": {
"type": "string",
"enum": [
"Creating",
"Failed",
"Running",
"Ready",
"Paused",
"Updating",
"Upgrading",
"Rollbacking",
"Deleting",
"Deleted"
],
"x-enum-varnames": [
"KubeSmartClusterPhaseCreating",
"KubeSmartClusterPhaseFailed",
"KubeSmartClusterPhaseRunning",
"KubeSmartClusterPhaseReady",
"KubeSmartClusterPhasePaused",
"KubeSmartClusterPhaseUpdating",
"KubeSmartClusterPhaseUpgrading",
"KubeSmartClusterPhaseRollbacking",
"KubeSmartClusterPhaseDeleting",
"KubeSmartClusterPhaseDeleted"
]
},
"v1alpha1.KubeSmartClusterSpec": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3298,8 +3340,13 @@
"type": "object",
"properties": {
"phase": {
"type": "string",
"description": "Phase represents the current operation phase of the cluster."
"type": "object",
"description": "Phase represents the current operation phase of the cluster.",
"allOf": [
{
"$ref": "#/components/schemas/v1alpha1.KubeSmartClusterPhase"
}
]
},
"startTime": {
"type": "string",
Expand Down Expand Up @@ -4841,4 +4888,4 @@
}
},
"x-original-swagger-version": "2.0"
}
}
Loading

0 comments on commit ec9ca85

Please sign in to comment.