Class: Google::Apis::ContainerV1beta1::NodeTaint

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb

Overview

Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NodeTaint

Returns a new instance of NodeTaint.



2863
2864
2865
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2863

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

Instance Attribute Details

#effectString

Effect for taint. Corresponds to the JSON property effect

Returns:

  • (String)


2851
2852
2853
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2851

def effect
  @effect
end

#keyString

Key for taint. Corresponds to the JSON property key

Returns:

  • (String)


2856
2857
2858
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2856

def key
  @key
end

#valueString

Value for taint. Corresponds to the JSON property value

Returns:

  • (String)


2861
2862
2863
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2861

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2868
2869
2870
2871
2872
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2868

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