Class: Google::Apis::GkeonpremV1::BareMetalParallelUpgradeConfig

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

Overview

BareMetalParallelUpgradeConfig defines the parallel upgrade settings for worker node pools.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalParallelUpgradeConfig

Returns a new instance of BareMetalParallelUpgradeConfig.



1849
1850
1851
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1849

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

Instance Attribute Details

#concurrent_nodesFixnum

Required. The maximum number of nodes that can be upgraded at once. Defaults to 1. Corresponds to the JSON property concurrentNodes

Returns:

  • (Fixnum)


1840
1841
1842
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1840

def concurrent_nodes
  @concurrent_nodes
end

#minimum_available_nodesFixnum

The minimum number of nodes that should be healthy and available during an upgrade. If set to the default value of 0, it is possible that none of the nodes will be available during an upgrade. Corresponds to the JSON property minimumAvailableNodes

Returns:

  • (Fixnum)


1847
1848
1849
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1847

def minimum_available_nodes
  @minimum_available_nodes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1854
1855
1856
1857
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1854

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