diff --git a/packages/google/src/serverGroup/configure/serverGroupCommandBuilder.service.js b/packages/google/src/serverGroup/configure/serverGroupCommandBuilder.service.js index 7c34e0c55bc..3ef9e98e9ec 100644 --- a/packages/google/src/serverGroup/configure/serverGroupCommandBuilder.service.js +++ b/packages/google/src/serverGroup/configure/serverGroupCommandBuilder.service.js @@ -104,7 +104,9 @@ angular } }); const localSSDDisks = disks.filter((disk) => disk.type === 'local-ssd'); - const persistentDisks = disks.filter((disk) => disk.type.startsWith('pd-')); + const persistentDisks = disks.filter( + (disk) => disk.type.startsWith('pd-') || disk.type.startsWith('hyperdisk-'), + ); if (persistentDisks.length) { command.disks = persistentDisks.concat(localSSDDisks); @@ -149,7 +151,9 @@ angular } function getPersistentDisks(command) { - return (command.disks || []).filter((disk) => disk.type.startsWith('pd-')); + return (command.disks || []).filter( + (disk) => disk.type.startsWith('pd-') || disk.type.startsWith('hyperdisk-'), + ); } function calculatePersistentDiskOverriddenStorageDescription(command) { diff --git a/packages/google/src/serverGroup/configure/serverGroupConfiguration.service.js b/packages/google/src/serverGroup/configure/serverGroupConfiguration.service.js index c054b313610..e3b779900f4 100644 --- a/packages/google/src/serverGroup/configure/serverGroupConfiguration.service.js +++ b/packages/google/src/serverGroup/configure/serverGroupConfiguration.service.js @@ -61,7 +61,7 @@ angular gceTagManager, gceLoadBalancerSetTransformer, ) { - const persistentDiskTypes = ['pd-standard', 'pd-ssd']; + const persistentDiskTypes = ['pd-standard', 'pd-ssd', 'hyperdisk-balanced']; const authScopes = [ 'cloud-platform', 'userinfo.email', diff --git a/packages/google/src/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.ts b/packages/google/src/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.ts index 356cd13e446..98a7afeee7c 100644 --- a/packages/google/src/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.ts +++ b/packages/google/src/serverGroup/configure/wizard/advancedSettings/diskConfigurer.component.ts @@ -84,7 +84,9 @@ class GceDiskConfigurerController implements IComponentController { } private sortDisks(disks: IGceDisk[]): IGceDisk[] { - const diskWithoutImage = disks.find((disk) => disk.type.startsWith('pd-') && disk.sourceImage === undefined); + const diskWithoutImage = disks.find( + (disk) => (disk.type.startsWith('pd-') || disk.type.startsWith('hyperdisk-')) && disk.sourceImage === undefined, + ); return [diskWithoutImage].concat(without(disks, diskWithoutImage)); } @@ -93,7 +95,9 @@ class GceDiskConfigurerController implements IComponentController { } private getPersistentDisks(): IGceDisk[] { - return (this.command.disks || []).filter((disk: IGceDisk) => disk.type.startsWith('pd-')); + return (this.command.disks || []).filter( + (disk: IGceDisk) => disk.type.startsWith('pd-') || disk.type.startsWith('hyperdisk-'), + ); } }