Class: Google::Apis::GkeonpremV1::NodeTaint
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::NodeTaint
- 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
-
#effect ⇒ String
The taint effect.
-
#key ⇒ String
Key associated with the effect.
-
#value ⇒ String
Value associated with the effect.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeTaint
constructor
A new instance of NodeTaint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodeTaint
Returns a new instance of NodeTaint.
2890 2891 2892 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2890 def initialize(**args) update!(**args) end |
Instance Attribute Details
#effect ⇒ String
The taint effect.
Corresponds to the JSON property effect
2878 2879 2880 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2878 def effect @effect end |
#key ⇒ String
Key associated with the effect.
Corresponds to the JSON property key
2883 2884 2885 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2883 def key @key end |
#value ⇒ String
Value associated with the effect.
Corresponds to the JSON property value
2888 2889 2890 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2888 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2895 2896 2897 2898 2899 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2895 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 |