Skip to content

Commit 9f9c6ba

Browse files
Merge pull request #1279 from barbacbd/CORS-3648-release-4.16
CORS-3648: Add the hyperdisk-balanced disk type
2 parents a3500bd + 00929b1 commit 9f9c6ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/webhooks/machine_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ func validateGCPDisks(disks []*machinev1beta1.GCPDisk, parentPath *field.Path) f
13011301
}
13021302

13031303
if disk.Type != "" {
1304-
diskTypes := sets.NewString("pd-standard", "pd-ssd", "pd-balanced")
1304+
diskTypes := sets.NewString("pd-standard", "pd-ssd", "pd-balanced", "hyperdisk-balanced")
13051305
if !diskTypes.Has(disk.Type) {
13061306
errs = append(errs, field.NotSupported(fldPath.Child("type"), disk.Type, diskTypes.List()))
13071307
}

pkg/webhooks/machine_webhook_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3319,7 +3319,7 @@ func TestValidateGCPProviderSpec(t *testing.T) {
33193319
}
33203320
},
33213321
expectedOk: false,
3322-
expectedError: "providerSpec.disks[0].type: Unsupported value: \"invalid\": supported values: \"pd-balanced\", \"pd-ssd\", \"pd-standard\"",
3322+
expectedError: "providerSpec.disks[0].type: Unsupported value: \"invalid\": supported values: \"hyperdisk-balanced\", \"pd-balanced\", \"pd-ssd\", \"pd-standard\"",
33233323
},
33243324
{
33253325
testCase: "with a disk type that is supported",

0 commit comments

Comments
 (0)