Skip to content

Commit 00b3539

Browse files
feat: Add SwapConfig to enable and configure swap memory for node pools (#32388)
* feat: Add SwapConfig to enable and configure swap memory for node pools feat: Add GPUDirectConfig to configure GPU Direct for node pools feat: Add consolidation_delay to configure Cluster Autoscaler node consolidation delay feat: Add RegistryHostConfig to ContainerdConfig for containerd registry host configuration feat: Add SliceControllerConfig to AddonsConfig to manage the Slice Controller addon feat: Add ManagedOpenTelemetryConfig to Cluster to manage the OpenTelemetry pipeline feat: Add NodeDrainConfig to NodePool to configure node draining behavior feat: Add AutopilotGeneralProfile to ClusterAutoscaling to configure Autopilot profiles feat: Add SHORT_LIVED as a NodePoolUpdateStrategy feat: Add DRAINING status to AdditionalIPRangesConfig for subnet draining feat: Allow specifying subnetwork in NodeNetworkConfig during node pool creation feat: Add DisruptionEvent to provide details on node disruption events docs: A comment for field `sysctls` in message `.google.container.v1.LinuxNodeConfig` is changed docs: A comment for field `subnetwork` in message `.google.container.v1.NodeNetworkConfig` is changed docs: A comment for field `gcp_secret_manager_certificate_config` in message `.google.container.v1.ContainerdConfig` is changed docs: A comment for field `cluster_ipv4_cidr_block` in message `.google.container.v1.IPAllocationPolicy` is changed docs: A comment for field `node_ipv4_cidr_block` in message `.google.container.v1.IPAllocationPolicy` is changed docs: A comment for field `services_ipv4_cidr_block` in message `.google.container.v1.IPAllocationPolicy` is changed docs: A comment for field `tpu_ipv4_cidr_block` in message `.google.container.v1.IPAllocationPolicy` is changed docs: A comment for field `cluster_ipv4_cidr` in message `.google.container.v1.Cluster` is changed docs: A comment for field `services_ipv4_cidr` in message `.google.container.v1.Cluster` is changed docs: A comment for field `tpu_ipv4_cidr_block` in message `.google.container.v1.Cluster` is changed docs: A comment for field `recurrence` in message `.google.container.v1.RecurringTimeWindow` is changed PiperOrigin-RevId: 859731311 Source-Link: googleapis/googleapis@928703e Source-Link: googleapis/googleapis-gen@22be7aa Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci12MS8uT3dsQm90LnlhbWwiLCJoIjoiMjJiZTdhYTU4MWJiMTBhYTc5OGUyMDBiZjUzMWZlYTM3NDkyNTdhNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 5145292 commit 00b3539

File tree

8 files changed

+537
-27
lines changed

8 files changed

+537
-27
lines changed

google-cloud-container-v1/lib/google/cloud/container/v1/cluster_manager/client.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def update_cluster request, options = nil
689689
# @param options [::Gapic::CallOptions, ::Hash]
690690
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
691691
#
692-
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil)
692+
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil, node_drain_config: nil, consolidation_delay: nil)
693693
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
694694
# least one keyword argument is required. To specify no parameters, or to keep all
695695
# the default parameter values, pass an empty Hash as a request object (see above).
@@ -827,6 +827,12 @@ def update_cluster request, options = nil
827827
# The desired boot disk config for nodes in the node pool.
828828
# Initiates an upgrade operation that migrates the nodes in the
829829
# node pool to the specified boot disk config.
830+
# @param node_drain_config [::Google::Cloud::Container::V1::NodePool::NodeDrainConfig, ::Hash]
831+
# The desired node drain configuration for nodes in the node pool.
832+
# @param consolidation_delay [::Google::Protobuf::Duration, ::Hash]
833+
# Consolidation delay defines duration after which the Cluster Autoscaler can
834+
# scale down underutilized nodes. If not set, nodes are scaled down by
835+
# default behavior, i.e. according to the chosen autoscaling profile.
830836
#
831837
# @yield [response, operation] Access the result along with the RPC operation
832838
# @yieldparam response [::Google::Cloud::Container::V1::Operation]

google-cloud-container-v1/lib/google/cloud/container/v1/cluster_manager/paths.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,25 @@ def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_
6666
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
6767
end
6868

69+
##
70+
# Create a fully-qualified Subnetwork resource string.
71+
#
72+
# The resource will be in the following format:
73+
#
74+
# `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
75+
#
76+
# @param project [String]
77+
# @param region [String]
78+
# @param subnetwork [String]
79+
#
80+
# @return [::String]
81+
def subnetwork_path project:, region:, subnetwork:
82+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
83+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
84+
85+
"projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
86+
end
87+
6988
##
7089
# Create a fully-qualified Topic resource string.
7190
#

google-cloud-container-v1/lib/google/cloud/container/v1/cluster_manager/rest/client.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def update_cluster request, options = nil
654654
# @param options [::Gapic::CallOptions, ::Hash]
655655
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
656656
#
657-
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil)
657+
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil, locations: nil, workload_metadata_config: nil, upgrade_settings: nil, tags: nil, taints: nil, labels: nil, linux_node_config: nil, kubelet_config: nil, node_network_config: nil, gcfs_config: nil, confidential_nodes: nil, gvnic: nil, etag: nil, fast_socket: nil, logging_config: nil, resource_labels: nil, windows_node_config: nil, accelerators: nil, machine_type: nil, disk_type: nil, disk_size_gb: nil, resource_manager_tags: nil, containerd_config: nil, queued_provisioning: nil, storage_pools: nil, max_run_duration: nil, flex_start: nil, boot_disk: nil, node_drain_config: nil, consolidation_delay: nil)
658658
# Pass arguments to `update_node_pool` via keyword arguments. Note that at
659659
# least one keyword argument is required. To specify no parameters, or to keep all
660660
# the default parameter values, pass an empty Hash as a request object (see above).
@@ -792,6 +792,12 @@ def update_cluster request, options = nil
792792
# The desired boot disk config for nodes in the node pool.
793793
# Initiates an upgrade operation that migrates the nodes in the
794794
# node pool to the specified boot disk config.
795+
# @param node_drain_config [::Google::Cloud::Container::V1::NodePool::NodeDrainConfig, ::Hash]
796+
# The desired node drain configuration for nodes in the node pool.
797+
# @param consolidation_delay [::Google::Protobuf::Duration, ::Hash]
798+
# Consolidation delay defines duration after which the Cluster Autoscaler can
799+
# scale down underutilized nodes. If not set, nodes are scaled down by
800+
# default behavior, i.e. according to the chosen autoscaling profile.
795801
# @yield [result, operation] Access the result along with the TransportOperation object
796802
# @yieldparam result [::Google::Cloud::Container::V1::Operation]
797803
# @yieldparam operation [::Gapic::Rest::TransportOperation]

google-cloud-container-v1/lib/google/container/v1/cluster_service_pb.rb

Lines changed: 23 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)