From 792dacbd24643d8650fbf705b3f745532012ea34 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 5 Mar 2024 16:39:21 -0800 Subject: [PATCH] feat: add secondary boot disks field to NodePool API PiperOrigin-RevId: 613011062 --- google/container/v1/cluster_service.proto | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/google/container/v1/cluster_service.proto b/google/container/v1/cluster_service.proto index 5459cc51aa..6e27ad2e30 100644 --- a/google/container/v1/cluster_service.proto +++ b/google/container/v1/cluster_service.proto @@ -836,6 +836,9 @@ message NodeConfig { // Optional. Reserved for future use. bool enable_confidential_storage = 46 [(google.api.field_behavior) = OPTIONAL]; + + // List of secondary boot disks attached to the nodes. + repeated SecondaryBootDisk secondary_boot_disks = 48; } // Specifies options for controlling advanced machine features. @@ -5350,6 +5353,27 @@ message EnterpriseConfig { ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// SecondaryBootDisk represents a persistent disk attached to a node +// with special configurations based on its mode. +message SecondaryBootDisk { + // Mode specifies how the secondary boot disk will be used. + // This triggers mode-specified logic in the control plane. + enum Mode { + // MODE_UNSPECIFIED is when mode is not set. + MODE_UNSPECIFIED = 0; + + // CONTAINER_IMAGE_CACHE is for using the secondary boot disk as + // a container image cache. + CONTAINER_IMAGE_CACHE = 1; + } + + // Disk mode (container image cache, etc.) + Mode mode = 1; + + // Fully-qualified resource ID for an existing disk image. + string disk_image = 2; +} + // Options for in-transit encryption. enum InTransitEncryptionConfig { // Unspecified, will be inferred as default -