Class: Google::Apis::GkeonpremV1::NodeTaint

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

NodeTaint applied to every Kubernetes node in a node pool. Kubernetes taints can be used together with tolerations to control how workloads are scheduled to your nodes. Node taints are permanent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeTaint

Returns a new instance of NodeTaint.



2777
2778
2779
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2777

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

Instance Attribute Details

#effectString

The taint effect. Corresponds to the JSON property effect

Returns:

  • (String)


2765
2766
2767
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2765

def effect
  @effect
end

#keyString

Key associated with the effect. Corresponds to the JSON property key

Returns:

  • (String)


2770
2771
2772
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2770

def key
  @key
end

#valueString

Value associated with the effect. Corresponds to the JSON property value

Returns:

  • (String)


2775
2776
2777
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2775

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2782
2783
2784
2785
2786
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2782

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