Skip to content

Commit

Permalink
Merge pull request #195 from openinfradev/release
Browse files Browse the repository at this point in the history
20231103 release to develop
  • Loading branch information
ktkfree authored Nov 3, 2023
2 parents c71a1aa + 78f1af0 commit 5b0bac6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
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

0 comments on commit 5b0bac6

Please sign in to comment.