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

trivial. fix validation #396

Merged
merged 1 commit into from
Apr 18, 2024
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
6 changes: 2 additions & 4 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11729,8 +11729,7 @@ const docTemplate = `{
"type": "string",
"enum": [
"AWS",
"AZZURE",
"GCP"
"BYOH"
]
},
"description": {
Expand Down Expand Up @@ -15520,8 +15519,7 @@ const docTemplate = `{
"type": "string",
"enum": [
"AWS",
"AZZURE",
"GCP"
"BYOH"
]
},
"description": {
Expand Down
6 changes: 2 additions & 4 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -11723,8 +11723,7 @@
"type": "string",
"enum": [
"AWS",
"AZZURE",
"GCP"
"BYOH"
]
},
"description": {
Expand Down Expand Up @@ -15514,8 +15513,7 @@
"type": "string",
"enum": [
"AWS",
"AZZURE",
"GCP"
"BYOH"
]
},
"description": {
Expand Down
6 changes: 2 additions & 4 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1186,8 +1186,7 @@ definitions:
cloudService:
enum:
- AWS
- AZZURE
- GCP
- BYOH
type: string
description:
type: string
Expand Down Expand Up @@ -3700,8 +3699,7 @@ definitions:
cloudService:
enum:
- AWS
- AZZURE
- GCP
- BYOH
type: string
description:
type: string
Expand Down
4 changes: 2 additions & 2 deletions pkg/domain/stack-template.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type CreateStackTemplateRequest struct {
Name string `json:"name" validate:"required,name"`
Description string `json:"description"`
Version string `json:"version" validate:"required"`
CloudService string `json:"cloudService" validate:"oneof=AWS AZZURE GCP"`
CloudService string `json:"cloudService" validate:"oneof=AWS BYOH"`
Platform string `json:"platform" validate:"required"`
TemplateType string `json:"templateType" validate:"oneof=STANDARD MSA"`
Template string `json:"template" validate:"required"`
Expand All @@ -82,7 +82,7 @@ type CreateStackTemplateResponse struct {
type UpdateStackTemplateRequest struct {
Description string `json:"description"`
Version string `json:"version" validate:"required"`
CloudService string `json:"cloudService" validate:"oneof=AWS AZZURE GCP"`
CloudService string `json:"cloudService" validate:"oneof=AWS BYOH"`
Platform string `json:"platform" validate:"required"`
TemplateType string `json:"templateType" validate:"oneof=STANDARD MSA"`
Template string `json:"template" validate:"required"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (m StackStatus) FromString(s string) StackStatus {
return StackStatus_PENDING
}

const MAX_STEP_CLUSTER_CREATE = 24
const MAX_STEP_CLUSTER_CREATE = 26
const MAX_STEP_CLUSTER_REMOVE = 14
const MAX_STEP_LMA_CREATE_PRIMARY = 39
const MAX_STEP_LMA_CREATE_MEMBER = 29
Expand Down
Loading