Skip to content

Commit 3b70681

Browse files
authored
Merge pull request #1278 from barbacbd/add_disk_types
Add additional disk types
2 parents 558e66e + 16c115d commit 3b70681

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

api/v1beta1/gcpmachine_types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ type AttachedDiskSpec struct {
4747
// 1. "pd-standard" - Standard (HDD) persistent disk
4848
// 2. "pd-ssd" - SSD persistent disk
4949
// 3. "local-ssd" - Local SSD disk (https://cloud.google.com/compute/docs/disks/local-ssd).
50+
// 4. "pd-balanced" - Balanced Persistent Disk
51+
// 5. "hyperdisk-balanced" - Hyperdisk Balanced
5052
// Default is "pd-standard".
5153
// +optional
5254
DeviceType *DiskType `json:"deviceType,omitempty"`
@@ -281,6 +283,8 @@ type GCPMachineSpec struct {
281283
// Supported types of root volumes:
282284
// 1. "pd-standard" - Standard (HDD) persistent disk
283285
// 2. "pd-ssd" - SSD persistent disk
286+
// 3. "pd-balanced" - Balanced Persistent Disk
287+
// 4. "hyperdisk-balanced" - Hyperdisk Balanced
284288
// Default is "pd-standard".
285289
// +optional
286290
RootDeviceType *DiskType `json:"rootDeviceType,omitempty"`

config/crd/bases/infrastructure.cluster.x-k8s.io_gcpmachines.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ spec:
7474
1. "pd-standard" - Standard (HDD) persistent disk
7575
2. "pd-ssd" - SSD persistent disk
7676
3. "local-ssd" - Local SSD disk (https://cloud.google.com/compute/docs/disks/local-ssd).
77+
4. "pd-balanced" - Balanced Persistent Disk
78+
5. "hyperdisk-balanced" - Hyperdisk Balanced
7779
Default is "pd-standard".
7880
type: string
7981
encryptionKey:
@@ -297,6 +299,8 @@ spec:
297299
Supported types of root volumes:
298300
1. "pd-standard" - Standard (HDD) persistent disk
299301
2. "pd-ssd" - SSD persistent disk
302+
3. "pd-balanced" - Balanced Persistent Disk
303+
4. "hyperdisk-balanced" - Hyperdisk Balanced
300304
Default is "pd-standard".
301305
type: string
302306
rootDiskEncryptionKey:

config/crd/bases/infrastructure.cluster.x-k8s.io_gcpmachinetemplates.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ spec:
8787
1. "pd-standard" - Standard (HDD) persistent disk
8888
2. "pd-ssd" - SSD persistent disk
8989
3. "local-ssd" - Local SSD disk (https://cloud.google.com/compute/docs/disks/local-ssd).
90+
4. "pd-balanced" - Balanced Persistent Disk
91+
5. "hyperdisk-balanced" - Hyperdisk Balanced
9092
Default is "pd-standard".
9193
type: string
9294
encryptionKey:
@@ -312,6 +314,8 @@ spec:
312314
Supported types of root volumes:
313315
1. "pd-standard" - Standard (HDD) persistent disk
314316
2. "pd-ssd" - SSD persistent disk
317+
3. "pd-balanced" - Balanced Persistent Disk
318+
4. "hyperdisk-balanced" - Hyperdisk Balanced
315319
Default is "pd-standard".
316320
type: string
317321
rootDiskEncryptionKey:

exp/api/v1beta1/gcpmanagedmachinepool_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const (
3939
SSD DiskType = "pd-ssd"
4040
// Balanced disk type.
4141
Balanced DiskType = "pd-balanced"
42+
// HyperdiskBalanced disk type
43+
HyperdiskBalanced DiskType = "hyperdisk-balanced"
4244
)
4345

4446
// GCPManagedMachinePoolSpec defines the desired state of GCPManagedMachinePool.

0 commit comments

Comments
 (0)