This commit is contained in:
2024-03-06 16:50:27 +03:00
parent 16cad7a3e7
commit 83bf1fb1fa
52 changed files with 715 additions and 1968 deletions

View File

@@ -29,7 +29,7 @@ type CreateRequest struct {
WorkerGroupName string `url:"workerGroupName" json:"workerGroupName" validate:"required,workerGroupName"`
// Network plugin
// Must be one of these values: flannel, weawenet, calico
// Must be one of these values: flannel, weavenet, calico
// Required: true
NetworkPlugin string `url:"networkPlugin" json:"networkPlugin" validate:"required,networkPlugin"`
@@ -202,7 +202,7 @@ func (k8s K8S) Create(ctx context.Context, req CreateRequest) (string, error) {
url := "/cloudapi/k8s/create"
res, err := k8s.client.DecortApiCallMP(ctx, http.MethodPost, url, req)
res, err := k8s.client.DecortApiCall(ctx, http.MethodPost, url, req)
if err != nil {
return "", err
}

View File

@@ -17,7 +17,7 @@ type DeleteRequest struct {
// True if cluster is destroyed permanently.
// Otherwise it can be restored from Recycle Bin
// Required: true
Permanently bool `url:"permanently" json:"permanently"`
Permanently bool `url:"permanently" json:"permanently" validate:"required"`
}
// Delete deletes kubernetes cluster