Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature. implementation byoh #157

Merged
merged 4 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
373 changes: 282 additions & 91 deletions api/swagger/docs.go

Large diffs are not rendered by default.

373 changes: 282 additions & 91 deletions api/swagger/swagger.json

Large diffs are not rendered by default.

238 changes: 179 additions & 59 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,11 @@ definitions:
type: string
type: array
type: object
domain.BootstrapKubeconfig:
properties:
expiration:
type: string
type: object
domain.ChartData:
properties:
podCounts:
Expand Down Expand Up @@ -364,6 +369,8 @@ definitions:
type: string
cloudService:
type: string
clusterEndpoint:
type: string
clusterType:
type: integer
conf:
Expand All @@ -380,6 +387,8 @@ definitions:
type: boolean
id:
type: string
isStack:
type: boolean
name:
type: string
organizationId:
Expand Down Expand Up @@ -441,6 +450,34 @@ definitions:
tksUserNodeType:
type: string
type: object
domain.ClusterHost:
properties:
name:
type: string
status:
type: string
type: object
domain.ClusterNode:
properties:
command:
type: string
hosts:
items:
$ref: '#/definitions/domain.ClusterHost'
type: array
registered:
type: integer
registering:
type: integer
status:
type: string
targeted:
type: integer
type:
type: string
validity:
type: string
type: object
domain.ClusterResponse:
properties:
cloudAccount:
Expand All @@ -459,6 +496,8 @@ definitions:
type: string
id:
type: string
isStack:
type: boolean
name:
type: string
organizationId:
Expand All @@ -473,6 +512,8 @@ definitions:
type: string
updator:
$ref: '#/definitions/domain.SimpleUserResponse'
userClusterEndpoint:
type: string
type: object
domain.ClusterSiteValuesResponse:
properties:
Expand Down Expand Up @@ -584,6 +625,11 @@ definitions:
metadata:
type: string
type: object
domain.CreateBootstrapKubeconfigResponse:
properties:
data:
$ref: '#/definitions/domain.BootstrapKubeconfig'
type: object
domain.CreateCloudAccountRequest:
properties:
accessKeyId:
Expand Down Expand Up @@ -635,6 +681,8 @@ definitions:
type: string
description:
type: string
isStack:
type: boolean
name:
type: string
organizationId:
Expand All @@ -659,8 +707,9 @@ definitions:
type: integer
tksUserNodeType:
type: string
userClusterEndpoint:
type: string
required:
- cloudAccountId
- cloudService
- name
- organizationId
Expand Down Expand Up @@ -689,15 +738,15 @@ definitions:
type: object
domain.CreateStackRequest:
properties:
adminClusterUrl:
type: string
cloudAccountId:
type: string
cloudService:
enum:
- AWS
- BYOH
type: string
clusterId:
type: string
description:
type: string
name:
Expand All @@ -722,6 +771,8 @@ definitions:
type: integer
tksUserNodeType:
type: string
userClusterEndpoint:
type: string
required:
- cloudService
- name
Expand Down Expand Up @@ -989,6 +1040,11 @@ definitions:
$ref: '#/definitions/domain.ApplicationResponse'
type: array
type: object
domain.GetBootstrapKubeconfigResponse:
properties:
data:
$ref: '#/definitions/domain.BootstrapKubeconfig'
type: object
domain.GetCloudAccountResourceQuotaResponse:
properties:
available:
Expand All @@ -1010,6 +1066,13 @@ definitions:
pagination:
$ref: '#/definitions/domain.PaginationResponse'
type: object
domain.GetClusterNodesResponse:
properties:
nodes:
items:
$ref: '#/definitions/domain.ClusterNode'
type: array
type: object
domain.GetClustersResponse:
properties:
clusters:
Expand Down Expand Up @@ -1094,15 +1157,6 @@ definitions:
kubeConfig:
type: string
type: object
domain.GetStackNodesResponse:
properties:
nodeStatus:
type: string
nodes:
items:
$ref: '#/definitions/domain.StackNodeResponse'
type: array
type: object
domain.GetStackResponse:
properties:
stack:
Expand Down Expand Up @@ -1296,6 +1350,16 @@ definitions:
totalRows:
type: integer
type: object
domain.PingTokenRequest:
properties:
organizationId:
type: string
token:
type: string
required:
- organizationId
- token
type: object
domain.PodCount:
properties:
day:
Expand Down Expand Up @@ -1379,6 +1443,10 @@ definitions:
type: string
name:
type: string
services:
items:
$ref: '#/definitions/domain.StackTemplateServiceResponse'
type: array
template:
type: string
type: object
Expand Down Expand Up @@ -1419,27 +1487,8 @@ definitions:
- tksInfraNode
- tksUserNode
type: object
domain.StackNodeResponse:
properties:
command:
type: string
id:
type: string
registered:
type: integer
status:
type: string
targeted:
type: integer
type:
type: string
validity:
type: integer
type: object
domain.StackResponse:
properties:
adminClusterUrl:
type: string
cloudAccount:
$ref: '#/definitions/domain.SimpleCloudAccountResponse'
conf:
Expand Down Expand Up @@ -1474,6 +1523,8 @@ definitions:
type: string
updator:
$ref: '#/definitions/domain.SimpleUserResponse'
userClusterEndpoint:
type: string
type: object
domain.StackStepStatus:
properties:
Expand Down Expand Up @@ -2209,6 +2260,26 @@ paths:
summary: logout
tags:
- Auth
/auth/ping:
post:
consumes:
- application/json
description: ping with token
parameters:
- description: token info
in: body
name: body
required: true
schema:
$ref: '#/definitions/domain.PingTokenRequest'
produces:
- application/json
responses:
"200":
description: OK
summary: ping with token
tags:
- Auth
/clusters:
get:
consumes:
Expand Down Expand Up @@ -2321,6 +2392,83 @@ paths:
summary: Get cluster
tags:
- Clusters
/clusters/{clusterId}/bootstrap-kubeconfig:
get:
consumes:
- application/json
description: Get bootstrap kubeconfig for BYOH
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/domain.GetBootstrapKubeconfigResponse'
security:
- JWT: []
summary: Get bootstrap kubeconfig for BYOH
tags:
- Clusters
post:
consumes:
- application/json
description: Create bootstrap kubeconfig for BYOH
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/domain.CreateBootstrapKubeconfigResponse'
security:
- JWT: []
summary: Create bootstrap kubeconfig for BYOH
tags:
- Clusters
/clusters/{clusterId}/install:
post:
consumes:
- application/json
description: Install cluster on tks cluster
parameters:
- description: clusterId
in: path
name: clusterId
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
security:
- JWT: []
summary: Install cluster on tks cluster
tags:
- Clusters
/clusters/{clusterId}/nodes:
get:
consumes:
- application/json
description: Get nodes information for BYOH
parameters:
- description: clusterId
in: path
name: clusterId
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/domain.GetClusterNodesResponse'
security:
- JWT: []
summary: Get nodes information for BYOH
tags:
- Clusters
/clusters/{clusterId}/site-values:
get:
consumes:
Expand Down Expand Up @@ -3772,34 +3920,6 @@ paths:
summary: Get KubeConfig by stack
tags:
- Stacks
/organizations/{organizationId}/stacks/{stackId}/nodes:
get:
consumes:
- application/json
description: Get nodes information for BYOH
parameters:
- description: organizationId
in: path
name: organizationId
required: true
type: string
- description: stackId
in: path
name: stackId
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/domain.GetStackNodesResponse'
security:
- JWT: []
summary: Get nodes information for BYOH
tags:
- Stacks
/organizations/{organizationId}/stacks/{stackId}/status:
get:
consumes:
Expand Down
Loading
Loading