Class: Google::Apis::ContainerV1beta1::BlueGreenSettings

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

Settings for blue-green upgrade.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BlueGreenSettings

Returns a new instance of BlueGreenSettings.



981
982
983
# File 'lib/google/apis/container_v1beta1/classes.rb', line 981

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

Instance Attribute Details

#autoscaled_rollout_policyGoogle::Apis::ContainerV1beta1::AutoscaledRolloutPolicy

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



968
969
970
# File 'lib/google/apis/container_v1beta1/classes.rb', line 968

def autoscaled_rollout_policy
  @autoscaled_rollout_policy
end

#node_pool_soak_durationString

Time needed after draining entire blue pool. After this period, blue pool will be cleaned up. Corresponds to the JSON property nodePoolSoakDuration

Returns:

  • (String)


974
975
976
# File 'lib/google/apis/container_v1beta1/classes.rb', line 974

def node_pool_soak_duration
  @node_pool_soak_duration
end

#standard_rollout_policyGoogle::Apis::ContainerV1beta1::StandardRolloutPolicy

Standard rollout policy is the default policy for blue-green. Corresponds to the JSON property standardRolloutPolicy



979
980
981
# File 'lib/google/apis/container_v1beta1/classes.rb', line 979

def standard_rollout_policy
  @standard_rollout_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



986
987
988
989
990
# File 'lib/google/apis/container_v1beta1/classes.rb', line 986

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