Class: Google::Apis::ContainerV1::StandardRolloutPolicy

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

Overview

Standard rollout policy is the default policy for blue-green.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StandardRolloutPolicy

Returns a new instance of StandardRolloutPolicy.



6403
6404
6405
# File 'lib/google/apis/container_v1/classes.rb', line 6403

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

Instance Attribute Details

#batch_node_countFixnum

Number of blue nodes to drain in a batch. Corresponds to the JSON property batchNodeCount

Returns:

  • (Fixnum)


6390
6391
6392
# File 'lib/google/apis/container_v1/classes.rb', line 6390

def batch_node_count
  @batch_node_count
end

#batch_percentageFloat

Percentage of the blue pool nodes to drain in a batch. The range of this field should be (0.0, 1.0]. Corresponds to the JSON property batchPercentage

Returns:

  • (Float)


6396
6397
6398
# File 'lib/google/apis/container_v1/classes.rb', line 6396

def batch_percentage
  @batch_percentage
end

#batch_soak_durationString

Soak time after each batch gets drained. Default to zero. Corresponds to the JSON property batchSoakDuration

Returns:

  • (String)


6401
6402
6403
# File 'lib/google/apis/container_v1/classes.rb', line 6401

def batch_soak_duration
  @batch_soak_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6408
6409
6410
6411
6412
# File 'lib/google/apis/container_v1/classes.rb', line 6408

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