mirror of https://github.com/kubernetes/kops.git
Merge pull request #10073 from olemarkus/validate-storage-type-fix
Allow more volume types
This commit is contained in:
commit
7f035dc824
|
|
@ -190,7 +190,7 @@ func CrossValidateInstanceGroup(g *kops.InstanceGroup, cluster *kops.Cluster, cl
|
|||
}
|
||||
|
||||
if g.Spec.RootVolumeType != nil && kops.CloudProviderID(cluster.Spec.CloudProvider) == kops.CloudProviderAWS {
|
||||
allErrs = append(allErrs, IsValidValue(field.NewPath("spec", "rootVolumeType"), g.Spec.RootVolumeType, []string{"gp2", "io1"})...)
|
||||
allErrs = append(allErrs, IsValidValue(field.NewPath("spec", "rootVolumeType"), g.Spec.RootVolumeType, []string{"standard", "gp2", "io1", "io2"})...)
|
||||
}
|
||||
|
||||
return allErrs
|
||||
|
|
|
|||
|
|
@ -193,6 +193,9 @@ func TestValidBootDevice(t *testing.T) {
|
|||
volumeType string
|
||||
expected []string
|
||||
}{
|
||||
{
|
||||
volumeType: "standard",
|
||||
},
|
||||
{
|
||||
volumeType: "gp2",
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue