Class: Google::Apis::GkeonpremV1::BareMetalMaintenanceConfig

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
more...

Overview

Specifies configurations to put bare metal nodes in and out of maintenance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalMaintenanceConfig

Returns a new instance of BareMetalMaintenanceConfig.

[View source]

1497
1498
1499
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1497

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

Instance Attribute Details

#maintenance_address_cidr_blocksArray<String>

Required. All IPv4 address from these ranges will be placed into maintenance mode. Nodes in maintenance mode will be cordoned and drained. When both of these are true, the "baremetal.cluster.gke.io/maintenance" annotation will be set on the node resource. Corresponds to the JSON property maintenanceAddressCidrBlocks

Returns:

  • (Array<String>)

1495
1496
1497
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1495

def maintenance_address_cidr_blocks
  @maintenance_address_cidr_blocks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1502
1503
1504
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1502

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