Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 2.1 KB

File metadata and controls

31 lines (24 loc) · 2.1 KB

V1DeviceTaint

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.

Properties

Name Type Description Notes
effect str 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.
key str The taint key to be applied to a device. Must be a label name.
time_added datetime TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). [optional]
value str The taint value corresponding to the taint key. Must be a label value. [optional]

Example

from kubernetes.client.models.v1_device_taint import V1DeviceTaint

# TODO update the JSON string below
json = "{}"
# create an instance of V1DeviceTaint from a JSON string
v1_device_taint_instance = V1DeviceTaint.from_json(json)
# print the JSON string representation of the object
print(V1DeviceTaint.to_json())

# convert the object into a dict
v1_device_taint_dict = v1_device_taint_instance.to_dict()
# create an instance of V1DeviceTaint from a dict
v1_device_taint_from_dict = V1DeviceTaint.from_dict(v1_device_taint_dict)

[Back to Model list] [Back to API list] [Back to README]