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

20231103 release to develop #195

Merged
merged 10 commits into from
Nov 3, 2023
3 changes: 3 additions & 0 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4650,6 +4650,9 @@ const docTemplate = `{
"clusterRegion": {
"type": "string"
},
"clusterType": {
"type": "string"
},
"sshKeyName": {
"type": "string"
},
Expand Down
3 changes: 3 additions & 0 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4643,6 +4643,9 @@
"clusterRegion": {
"type": "string"
},
"clusterType": {
"type": "string"
},
"sshKeyName": {
"type": "string"
},
Expand Down
2 changes: 2 additions & 0 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ definitions:
type: integer
clusterRegion:
type: string
clusterType:
type: string
sshKeyName:
type: string
tksCpNode:
Expand Down
1 change: 0 additions & 1 deletion internal/delivery/http/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func (h *ClusterHandler) ImportCluster(w http.ResponseWriter, r *http.Request) {
dto.Conf.SetDefault()
log.InfoWithContext(r.Context(), dto.Conf)

dto.CloudService = "AWS"
dto.CloudAccountId = uuid.Nil
clusterId, err := h.usecase.Import(r.Context(), dto)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions pkg/domain/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ type SimpleClusterResponse struct {
}

type ClusterSiteValuesResponse struct {
ClusterType string `json:"clusterType"`
SshKeyName string `json:"sshKeyName"`
ClusterRegion string `json:"clusterRegion"`
TksCpNode int `json:"tksCpNode"`
Expand Down
Loading