Class: Google::Apis::ContainerV1::StandardRolloutPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::StandardRolloutPolicy
- 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
-
#batch_node_count ⇒ Fixnum
Number of blue nodes to drain in a batch.
-
#batch_percentage ⇒ Float
Percentage of the bool pool nodes to drain in a batch.
-
#batch_soak_duration ⇒ String
Soak time after each batch gets drained.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StandardRolloutPolicy
constructor
A new instance of StandardRolloutPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StandardRolloutPolicy
Returns a new instance of StandardRolloutPolicy.
5288 5289 5290 |
# File 'lib/google/apis/container_v1/classes.rb', line 5288 def initialize(**args) update!(**args) end |
Instance Attribute Details
#batch_node_count ⇒ Fixnum
Number of blue nodes to drain in a batch.
Corresponds to the JSON property batchNodeCount
5275 5276 5277 |
# File 'lib/google/apis/container_v1/classes.rb', line 5275 def batch_node_count @batch_node_count end |
#batch_percentage ⇒ Float
Percentage of the bool pool nodes to drain in a batch. The range of this field
should be (0.0, 1.0].
Corresponds to the JSON property batchPercentage
5281 5282 5283 |
# File 'lib/google/apis/container_v1/classes.rb', line 5281 def batch_percentage @batch_percentage end |
#batch_soak_duration ⇒ String
Soak time after each batch gets drained. Default to zero.
Corresponds to the JSON property batchSoakDuration
5286 5287 5288 |
# File 'lib/google/apis/container_v1/classes.rb', line 5286 def batch_soak_duration @batch_soak_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5293 5294 5295 5296 5297 |
# File 'lib/google/apis/container_v1/classes.rb', line 5293 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 |