Skip to content

Commit

Permalink
feature. move staknode to clusternode
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Oct 13, 2023
1 parent e1f2e74 commit 1685d9a
Show file tree
Hide file tree
Showing 13 changed files with 799 additions and 478 deletions.
249 changes: 151 additions & 98 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,60 @@ const docTemplate = `{
}
}
},
"/clusters/{clusterId}/bootstrap-kubeconfig": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get bootstrap kubeconfig for BYOH",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Clusters"
],
"summary": "Get bootstrap kubeconfig for BYOH",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.GetBootstrapKubeconfigResponse"
}
}
}
},
"post": {
"security": [
{
"JWT": []
}
],
"description": "Create bootstrap kubeconfig for BYOH",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Clusters"
],
"summary": "Create bootstrap kubeconfig for BYOH",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.CreateBootstrapKubeconfigResponse"
}
}
}
}
},
"/clusters/{clusterId}/install": {
"post": {
"security": [
Expand Down Expand Up @@ -740,6 +794,43 @@ const docTemplate = `{
}
}
},
"/clusters/{clusterId}/nodes": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get nodes information for BYOH",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Clusters"
],
"summary": "Get nodes information for BYOH",
"parameters": [
{
"type": "string",
"description": "clusterId",
"name": "clusterId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.GetClusterNodesResponse"
}
}
}
}
},
"/clusters/{clusterId}/site-values": {
"get": {
"security": [
Expand Down Expand Up @@ -3068,50 +3159,6 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/stacks/{stackId}/nodes": {
"get": {
"security": [
{
"JWT": []
}
],
"description": "Get nodes information for BYOH",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Stacks"
],
"summary": "Get nodes information for BYOH",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "stackId",
"name": "stackId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/domain.GetStackNodesResponse"
}
}
}
}
},
"/organizations/{organizationId}/stacks/{stackId}/status": {
"get": {
"security": [
Expand Down Expand Up @@ -4433,6 +4480,49 @@ const docTemplate = `{
}
}
},
"domain.ClusterHost": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"domain.ClusterNode": {
"type": "object",
"properties": {
"command": {
"type": "string"
},
"hosts": {
"type": "array",
"items": {
"$ref": "#/definitions/domain.ClusterHost"
}
},
"registered": {
"type": "integer"
},
"registering": {
"type": "integer"
},
"status": {
"type": "string"
},
"targeted": {
"type": "integer"
},
"type": {
"type": "string"
},
"validity": {
"type": "integer"
}
}
},
"domain.ClusterResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -4652,6 +4742,9 @@ const docTemplate = `{
}
}
},
"domain.CreateBootstrapKubeconfigResponse": {
"type": "object"
},
"domain.CreateCloudAccountRequest": {
"type": "object",
"required": [
Expand Down Expand Up @@ -5256,6 +5349,9 @@ const docTemplate = `{
}
}
},
"domain.GetBootstrapKubeconfigResponse": {
"type": "object"
},
"domain.GetCloudAccountResourceQuotaResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5289,6 +5385,17 @@ const docTemplate = `{
}
}
},
"domain.GetClusterNodesResponse": {
"type": "object",
"properties": {
"nodes": {
"type": "array",
"items": {
"$ref": "#/definitions/domain.ClusterNode"
}
}
}
},
"domain.GetClustersResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5420,17 +5527,6 @@ const docTemplate = `{
}
}
},
"domain.GetStackNodesResponse": {
"type": "object",
"properties": {
"nodes": {
"type": "array",
"items": {
"$ref": "#/definitions/domain.StackNode"
}
}
}
},
"domain.GetStackResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5935,49 +6031,6 @@ const docTemplate = `{
}
}
},
"domain.StackHost": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"status": {
"type": "string"
}
}
},
"domain.StackNode": {
"type": "object",
"properties": {
"command": {
"type": "string"
},
"hosts": {
"type": "array",
"items": {
"$ref": "#/definitions/domain.StackHost"
}
},
"registered": {
"type": "integer"
},
"registering": {
"type": "integer"
},
"status": {
"type": "string"
},
"targeted": {
"type": "integer"
},
"type": {
"type": "string"
},
"validity": {
"type": "integer"
}
}
},
"domain.StackResponse": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 1685d9a

Please sign in to comment.