class Google::Apis::ContainerV1beta1::NodeTaint

Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See [here](kubernetes.io/docs/concepts/configuration/taint-and-toleration) for more information, including usage and the valid values.

Attributes

effect[RW]

Effect for taint. Corresponds to the JSON property `effect` @return [String]

key[RW]

Key for taint. Corresponds to the JSON property `key` @return [String]

value[RW]

Value for taint. Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/container_v1beta1/classes.rb, line 3583
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/container_v1beta1/classes.rb, line 3588
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