struct Kubernetes::DeviceTaint

Overview

The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.

Included Modules

Defined in:

generated/models/io_k8s_api_resource_v1.cr
generated/models/io_k8s_api_resource_v1alpha3.cr
generated/models/io_k8s_api_resource_v1beta1.cr
generated/models/io_k8s_api_resource_v1beta2.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def effect : String | Nil #

The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None.


def effect=(effect : String | Nil) #

The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None.


def key : String | Nil #

The taint key to be applied to a device. Must be a label name.


def key=(key : String | Nil) #

The taint key to be applied to a device. Must be a label name.


def time_added : Time | Nil #

TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.


def time_added=(time_added : Time | Nil) #

TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.


def value : String | Nil #

The taint value corresponding to the taint key. Must be a label value.


def value=(value : String | Nil) #

The taint value corresponding to the taint key. Must be a label value.