Skip to content

Commit

Permalink
feat(container): add secondary boot disks field to NodePool API
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored Mar 6, 2024
1 parent 248ed94 commit 96aabc4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ class NodeKubeletConfig
# @!attribute [rw] enable_confidential_storage
# @return [::Boolean]
# Optional. Reserved for future use.
# @!attribute [rw] secondary_boot_disks
# @return [::Array<::Google::Cloud::Container::V1::SecondaryBootDisk>]
# List of secondary boot disks attached to the nodes.
class NodeConfig
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
Expand Down Expand Up @@ -5471,6 +5474,30 @@ module ClusterTier
end
end

# SecondaryBootDisk represents a persistent disk attached to a node
# with special configurations based on its mode.
# @!attribute [rw] mode
# @return [::Google::Cloud::Container::V1::SecondaryBootDisk::Mode]
# Disk mode (container image cache, etc.)
# @!attribute [rw] disk_image
# @return [::String]
# Fully-qualified resource ID for an existing disk image.
class SecondaryBootDisk
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods

# Mode specifies how the secondary boot disk will be used.
# This triggers mode-specified logic in the control plane.
module 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
end
end

# PrivateIPv6GoogleAccess controls whether and how the pods can communicate
# with Google Services through gRPC over IPv6.
module PrivateIPv6GoogleAccess
Expand Down

0 comments on commit 96aabc4

Please sign in to comment.