This commit is contained in:
2024-03-14 10:17:08 +03:00
parent de9cca4053
commit 55027a1605
50 changed files with 718 additions and 1963 deletions

View File

@@ -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