@@ -1243,8 +1243,10 @@ class Cluster
12431243 # @return [String]
12441244 attr_accessor :cluster_ipv4_cidr
12451245
1246- # CompliancePostureConfig defines the settings needed to enable/disable features
1247- # for the Compliance Posture.
1246+ # Deprecated: Compliance Posture is no longer supported. For more details, see
1247+ # https://cloud.google.com/kubernetes-engine/docs/deprecations/posture-
1248+ # management-deprecation. CompliancePostureConfig defines the settings needed to
1249+ # enable/disable features for the Compliance Posture.
12481250 # Corresponds to the JSON property `compliancePostureConfig`
12491251 # @return [Google::Apis::ContainerV1::CompliancePostureConfig]
12501252 attr_accessor :compliance_posture_config
@@ -1932,8 +1934,10 @@ class ClusterUpdate
19321934 # @return [Google::Apis::ContainerV1::ClusterAutoscaling]
19331935 attr_accessor :desired_cluster_autoscaling
19341936
1935- # CompliancePostureConfig defines the settings needed to enable/disable features
1936- # for the Compliance Posture.
1937+ # Deprecated: Compliance Posture is no longer supported. For more details, see
1938+ # https://cloud.google.com/kubernetes-engine/docs/deprecations/posture-
1939+ # management-deprecation. CompliancePostureConfig defines the settings needed to
1940+ # enable/disable features for the Compliance Posture.
19371941 # Corresponds to the JSON property `desiredCompliancePostureConfig`
19381942 # @return [Google::Apis::ContainerV1::CompliancePostureConfig]
19391943 attr_accessor :desired_compliance_posture_config
@@ -2536,8 +2540,10 @@ def update!(**args)
25362540 end
25372541 end
25382542
2539- # CompliancePostureConfig defines the settings needed to enable/disable features
2540- # for the Compliance Posture.
2543+ # Deprecated: Compliance Posture is no longer supported. For more details, see
2544+ # https://cloud.google.com/kubernetes-engine/docs/deprecations/posture-
2545+ # management-deprecation. CompliancePostureConfig defines the settings needed to
2546+ # enable/disable features for the Compliance Posture.
25412547 class CompliancePostureConfig
25422548 include Google ::Apis ::Core ::Hashable
25432549
@@ -2728,6 +2734,31 @@ def update!(**args)
27282734 end
27292735 end
27302736
2737+ # Contains config to modify node-level parameters for container restart behavior.
2738+ class CrashLoopBackOffConfig
2739+ include Google ::Apis ::Core ::Hashable
2740+
2741+ # Optional. The maximum duration the backoff delay can accrue to for container
2742+ # restarts, minimum 1 second, maximum 300 seconds. If not set, defaults to the
2743+ # internal crashloopbackoff maximum. The string must be a sequence of decimal
2744+ # numbers, each with optional fraction and a unit suffix, such as "300ms". Valid
2745+ # time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". See https://
2746+ # kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-
2747+ # container-restart-delay for more details.
2748+ # Corresponds to the JSON property `maxContainerRestartPeriod`
2749+ # @return [String]
2750+ attr_accessor :max_container_restart_period
2751+
2752+ def initialize ( **args )
2753+ update! ( **args )
2754+ end
2755+
2756+ # Update properties of this object
2757+ def update! ( **args )
2758+ @max_container_restart_period = args [ :max_container_restart_period ] if args . key? ( :max_container_restart_period )
2759+ end
2760+ end
2761+
27312762 # CreateClusterRequest creates a cluster.
27322763 class CreateClusterRequest
27332764 include Google ::Apis ::Core ::Hashable
@@ -3081,6 +3112,47 @@ def update!(**args)
30813112 end
30823113 end
30833114
3115+ # DisruptionBudget defines the upgrade disruption budget for the cluster control
3116+ # plane.
3117+ class DisruptionBudget
3118+ include Google ::Apis ::Core ::Hashable
3119+
3120+ # Output only. The last time a disruption was performed on the control plane.
3121+ # Corresponds to the JSON property `lastDisruptionTime`
3122+ # @return [String]
3123+ attr_accessor :last_disruption_time
3124+
3125+ # Output only. The last time a minor version upgrade was performed on the
3126+ # control plane.
3127+ # Corresponds to the JSON property `lastMinorVersionDisruptionTime`
3128+ # @return [String]
3129+ attr_accessor :last_minor_version_disruption_time
3130+
3131+ # Optional. The minimum duration between two minor version upgrades of the
3132+ # control plane.
3133+ # Corresponds to the JSON property `minorVersionDisruptionInterval`
3134+ # @return [String]
3135+ attr_accessor :minor_version_disruption_interval
3136+
3137+ # Optional. The minimum duration between two patch version upgrades of the
3138+ # control plane.
3139+ # Corresponds to the JSON property `patchVersionDisruptionInterval`
3140+ # @return [String]
3141+ attr_accessor :patch_version_disruption_interval
3142+
3143+ def initialize ( **args )
3144+ update! ( **args )
3145+ end
3146+
3147+ # Update properties of this object
3148+ def update! ( **args )
3149+ @last_disruption_time = args [ :last_disruption_time ] if args . key? ( :last_disruption_time )
3150+ @last_minor_version_disruption_time = args [ :last_minor_version_disruption_time ] if args . key? ( :last_minor_version_disruption_time )
3151+ @minor_version_disruption_interval = args [ :minor_version_disruption_interval ] if args . key? ( :minor_version_disruption_interval )
3152+ @patch_version_disruption_interval = args [ :patch_version_disruption_interval ] if args . key? ( :patch_version_disruption_interval )
3153+ end
3154+ end
3155+
30843156 # DisruptionEvent is a notification sent to customers about the disruption event
30853157 # of a resource.
30863158 class DisruptionEvent
@@ -4859,6 +4931,12 @@ def update!(**args)
48594931 class MaintenancePolicy
48604932 include Google ::Apis ::Core ::Hashable
48614933
4934+ # DisruptionBudget defines the upgrade disruption budget for the cluster control
4935+ # plane.
4936+ # Corresponds to the JSON property `disruptionBudget`
4937+ # @return [Google::Apis::ContainerV1::DisruptionBudget]
4938+ attr_accessor :disruption_budget
4939+
48624940 # A hash identifying the version of this policy, so that updates to fields of
48634941 # the policy won't accidentally undo intermediate changes (and so that users of
48644942 # the API unaware of some fields won't accidentally remove other fields). Make a
@@ -4879,6 +4957,7 @@ def initialize(**args)
48794957
48804958 # Update properties of this object
48814959 def update! ( **args )
4960+ @disruption_budget = args [ :disruption_budget ] if args . key? ( :disruption_budget )
48824961 @resource_version = args [ :resource_version ] if args . key? ( :resource_version )
48834962 @window = args [ :window ] if args . key? ( :window )
48844963 end
@@ -6028,6 +6107,11 @@ class NodeKubeletConfig
60286107 # @return [String]
60296108 attr_accessor :cpu_manager_policy
60306109
6110+ # Contains config to modify node-level parameters for container restart behavior.
6111+ # Corresponds to the JSON property `crashLoopBackOff`
6112+ # @return [Google::Apis::ContainerV1::CrashLoopBackOffConfig]
6113+ attr_accessor :crash_loop_back_off
6114+
60316115 # Optional. eviction_max_pod_grace_period_seconds is the maximum allowed grace
60326116 # period (in seconds) to use when terminating pods in response to a soft
60336117 # eviction threshold being met. This value effectively caps the Pod's
@@ -6123,6 +6207,26 @@ class NodeKubeletConfig
61236207 # @return [Fixnum]
61246208 attr_accessor :pod_pids_limit
61256209
6210+ # Optional. shutdown_grace_period_critical_pods_seconds is the maximum allowed
6211+ # grace period (in seconds) used to terminate critical pods during a node
6212+ # shutdown. This value should be <= shutdown_grace_period_seconds, and is only
6213+ # valid if shutdown_grace_period_seconds is set. https://kubernetes.io/docs/
6214+ # concepts/cluster-administration/node-shutdown/ Range: [0, 120].
6215+ # Corresponds to the JSON property `shutdownGracePeriodCriticalPodsSeconds`
6216+ # @return [Fixnum]
6217+ attr_accessor :shutdown_grace_period_critical_pods_seconds
6218+
6219+ # Optional. shutdown_grace_period_seconds is the maximum allowed grace period (
6220+ # in seconds) the total duration that the node should delay the shutdown during
6221+ # a graceful shutdown. This is the total grace period for pod termination for
6222+ # both regular and critical pods. https://kubernetes.io/docs/concepts/cluster-
6223+ # administration/node-shutdown/ If set to 0, node will not enable the graceful
6224+ # node shutdown functionality. This field is only valid for Spot VMs. Allowed
6225+ # values: 0, 30, 120.
6226+ # Corresponds to the JSON property `shutdownGracePeriodSeconds`
6227+ # @return [Fixnum]
6228+ attr_accessor :shutdown_grace_period_seconds
6229+
61266230 # Optional. Defines whether to enable single process OOM killer. If true, will
61276231 # prevent the memory.oom.group flag from being set for container cgroups in
61286232 # cgroups v2. This causes processes in the container to be OOM killed
@@ -6150,6 +6254,7 @@ def update!(**args)
61506254 @cpu_cfs_quota = args [ :cpu_cfs_quota ] if args . key? ( :cpu_cfs_quota )
61516255 @cpu_cfs_quota_period = args [ :cpu_cfs_quota_period ] if args . key? ( :cpu_cfs_quota_period )
61526256 @cpu_manager_policy = args [ :cpu_manager_policy ] if args . key? ( :cpu_manager_policy )
6257+ @crash_loop_back_off = args [ :crash_loop_back_off ] if args . key? ( :crash_loop_back_off )
61536258 @eviction_max_pod_grace_period_seconds = args [ :eviction_max_pod_grace_period_seconds ] if args . key? ( :eviction_max_pod_grace_period_seconds )
61546259 @eviction_minimum_reclaim = args [ :eviction_minimum_reclaim ] if args . key? ( :eviction_minimum_reclaim )
61556260 @eviction_soft = args [ :eviction_soft ] if args . key? ( :eviction_soft )
@@ -6162,6 +6267,8 @@ def update!(**args)
61626267 @max_parallel_image_pulls = args [ :max_parallel_image_pulls ] if args . key? ( :max_parallel_image_pulls )
61636268 @memory_manager = args [ :memory_manager ] if args . key? ( :memory_manager )
61646269 @pod_pids_limit = args [ :pod_pids_limit ] if args . key? ( :pod_pids_limit )
6270+ @shutdown_grace_period_critical_pods_seconds = args [ :shutdown_grace_period_critical_pods_seconds ] if args . key? ( :shutdown_grace_period_critical_pods_seconds )
6271+ @shutdown_grace_period_seconds = args [ :shutdown_grace_period_seconds ] if args . key? ( :shutdown_grace_period_seconds )
61656272 @single_process_oom_kill = args [ :single_process_oom_kill ] if args . key? ( :single_process_oom_kill )
61666273 @topology_manager = args [ :topology_manager ] if args . key? ( :topology_manager )
61676274 end
@@ -6306,11 +6413,13 @@ class NodeNetworkConfig
63066413
63076414 # Optional. The subnetwork name/path for the node pool. Format: projects/`
63086415 # project`/regions/`region`/subnetworks/`subnetwork` If the cluster is
6309- # associated with multiple subnetworks, the subnetwork can be either: 1. A user
6310- # supplied subnetwork name/full path during node pool creation. Example1: my-
6311- # subnet Example2: projects/gke-project/regions/us-central1/subnetworks/my-
6312- # subnet 2. A subnetwork path picked based on the IP utilization during node
6313- # pool creation and is immutable.
6416+ # associated with multiple subnetworks, the subnetwork can be either: - A user
6417+ # supplied subnetwork name during node pool creation (e.g., `my-subnet`). The
6418+ # name must be between 1 and 63 characters long, start with a letter, contain
6419+ # only letters, numbers, and hyphens, and end with a letter or a number. - A
6420+ # full subnetwork path during node pool creation, such as `projects/gke-project/
6421+ # regions/us-central1/subnetworks/my-subnet` - A subnetwork path picked based on
6422+ # the IP utilization during node pool creation and is immutable.
63146423 # Corresponds to the JSON property `subnetwork`
63156424 # @return [String]
63166425 attr_accessor :subnetwork
0 commit comments