Skip to content

Commit

Permalink
rollback. rollback logic of infra conf on creating stack(cluster).
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed Sep 22, 2023
1 parent 05e4b13 commit 8b28d99
Show file tree
Hide file tree
Showing 14 changed files with 603 additions and 137 deletions.
170 changes: 138 additions & 32 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2879,6 +2879,86 @@ const docTemplate = `{
}
}
},
"/organizations/{organizationId}/stacks/{stackId}/favorite": {
"post": {
"security": [
{
"JWT": []
}
],
"description": "Set favorite stack",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Stacks"
],
"summary": "Set favorite stack",
"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"
}
}
},
"delete": {
"security": [
{
"JWT": []
}
],
"description": "Delete favorite stack",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Stacks"
],
"summary": "Delete favorite stack",
"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"
}
}
}
},
"/organizations/{organizationId}/stacks/{stackId}/kube-config": {
"get": {
"security": [
Expand Down Expand Up @@ -4118,6 +4198,12 @@ const docTemplate = `{
"cloudAccountId": {
"type": "string"
},
"cloudService": {
"type": "string"
},
"clusterType": {
"type": "integer"
},
"conf": {
"$ref": "#/definitions/domain.ClusterConf"
},
Expand Down Expand Up @@ -4235,6 +4321,12 @@ const docTemplate = `{
"cloudAccount": {
"$ref": "#/definitions/domain.SimpleCloudAccountResponse"
},
"cloudService": {
"type": "string"
},
"clusterType": {
"type": "string"
},
"conf": {
"$ref": "#/definitions/domain.ClusterConfResponse"
},
Expand Down Expand Up @@ -4492,6 +4584,7 @@ const docTemplate = `{
"type": "object",
"required": [
"cloudAccountId",
"cloudService",
"name",
"organizationId",
"stackTemplateId"
Expand All @@ -4500,6 +4593,16 @@ const docTemplate = `{
"cloudAccountId": {
"type": "string"
},
"cloudService": {
"type": "string",
"enum": [
"AWS",
"BYOH"
]
},
"clusterType": {
"type": "string"
},
"description": {
"type": "string"
},
Expand Down Expand Up @@ -4576,25 +4679,56 @@ const docTemplate = `{
"type": "object",
"required": [
"cloudAccountId",
"cloudService",
"name",
"nodes",
"stackTemplateId"
],
"properties": {
"cloudAccountId": {
"type": "string"
},
"cloudService": {
"type": "string",
"enum": [
"AWS",
"BYOH"
]
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"nodes": {
"$ref": "#/definitions/domain.StackNodesIO"
},
"stackTemplateId": {
"type": "string"
},
"tksCpNode": {
"type": "integer"
},
"tksCpNodeMax": {
"type": "integer"
},
"tksCpNodeType": {
"type": "string"
},
"tksInfraNode": {
"type": "integer"
},
"tksInfraNodeMax": {
"type": "integer"
},
"tksInfraNodeType": {
"type": "string"
},
"tksUserNode": {
"type": "integer"
},
"tksUserNodeMax": {
"type": "integer"
},
"tksUserNodeType": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -5635,34 +5769,6 @@ const docTemplate = `{
}
}
},
"domain.StackNodeIO": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"hostNames": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"domain.StackNodesIO": {
"type": "object",
"properties": {
"tksCpNode": {
"$ref": "#/definitions/domain.StackNodeIO"
},
"tksInfraNode": {
"$ref": "#/definitions/domain.StackNodeIO"
},
"tksUserNode": {
"$ref": "#/definitions/domain.StackNodeIO"
}
}
},
"domain.StackResponse": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 8b28d99

Please sign in to comment.