Class: Google::Apis::ContainerV1beta1::AutoscaledRolloutPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

Autoscaled rollout policy utilizes the cluster autoscaler during blue-green upgrade to scale both the blue and green pools.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoscaledRolloutPolicy

Returns a new instance of AutoscaledRolloutPolicy.



795
796
797
# File 'lib/google/apis/container_v1beta1/classes.rb', line 795

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#wait_for_drain_durationString

Optional. Time to wait after cordoning the blue pool before draining the nodes. Defaults to 3 days. The value can be set between 0 and 7 days, inclusive. Corresponds to the JSON property waitForDrainDuration

Returns:

  • (String)


793
794
795
# File 'lib/google/apis/container_v1beta1/classes.rb', line 793

def wait_for_drain_duration
  @wait_for_drain_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



800
801
802
# File 'lib/google/apis/container_v1beta1/classes.rb', line 800

def update!(**args)
  @wait_for_drain_duration = args[:wait_for_drain_duration] if args.key?(:wait_for_drain_duration)
end