Skip to content

Commit

Permalink
Merge pull request #189 from lreciomelero/fix/azure_fstype
Browse files Browse the repository at this point in the history
changed valid field
  • Loading branch information
lreciomelero authored Jun 30, 2023
2 parents 0fe1bfc + bab736b commit 52a6d13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/kind/create/cluster/validation/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func verifyFields(descriptor commons.DescriptorFile) error {
return errors.New(err.Error() + "Supported fields for " + descriptor.InfraProvider + ": " + strings.Join(supportedFields, ", "))
}
case "aws":
supportedFields = []string{"type", "iopsPerGB", "fstype", "allowAutoIOPSPerGBIncrease", "iops", "throughput", "blockExpress", "blockSize", "labels"}
supportedFields = []string{"type", "iopsPerGB", "fsType", "allowAutoIOPSPerGBIncrease", "iops", "throughput", "blockExpress", "blockSize", "labels"}
err := verifyAdditionalFields(params, []string{"Type", "IopsPerGB", "FsType", "AllowAutoIOPSPerGBIncrease", "Iops", "Throughput", "BlockExpress", "BlockSize", "Labels"})
if err != nil {
return errors.New(err.Error() + "Supported fields for " + descriptor.InfraProvider + ": " + strings.Join(supportedFields, ", "))
Expand Down
2 changes: 1 addition & 1 deletion pkg/commons/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ type SCParameters struct {
Labels string `yaml:"labels,omitempty" validate:"omitempty"`

IopsPerGB string `yaml:"iopsPerGB,omitempty" validate:"omitempty,excluded_with=Iops"`
FsType string `yaml:"fstype,omitempty" validate:"omitempty"`
FsType string `yaml:"fsType,omitempty" validate:"omitempty"`
KmsKeyId string `yaml:"kmsKeyId,omitempty" validate:"omitempty"`
AllowAutoIOPSPerGBIncrease string `yaml:"allowAutoIOPSPerGBIncrease,omitempty" validate:"omitempty,oneof='true' 'false'"`
Iops string `yaml:"iops,omitempty" validate:"omitempty,excluded_with=IopsPerGB"`
Expand Down

0 comments on commit 52a6d13

Please sign in to comment.