Skip to content

Commit

Permalink
GCLOUD2-12835 fix k8s CreateOpts validation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexk53 committed Jan 15, 2024
1 parent 9dc41ce commit 2b6bc13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcore/k8s/v2/clusters/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type CreateOptsBuilder interface {
// CreateOpts represents options used to create a cluster.
type CreateOpts struct {
Name string `json:"name" required:"true" validate:"required,gt=0,lte=20"`
FixedNetwork string `json:"fixed_network" required:"true" validate:"required,uuid4"`
FixedSubnet string `json:"fixed_subnet" required:"true" validate:"required,uuid4"`
FixedNetwork string `json:"fixed_network" validate:"uuid4"`
FixedSubnet string `json:"fixed_subnet" validate:"uuid4"`
PodsIPPool *gcorecloud.CIDR `json:"pods_ip_pool,omitempty" validate:"omitempty,cidr"`
ServicesIPPool *gcorecloud.CIDR `json:"services_ip_pool,omitempty" validate:"omitempty,cidr"`
PodsIPV6Pool *gcorecloud.CIDR `json:"pods_ipv6_pool,omitempty" validate:"omitempty,cidr"`
Expand Down

0 comments on commit 2b6bc13

Please sign in to comment.