Taint class

The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.

Constructors

Taint({required String effect, required String key, DateTime? timeAdded, String? value})
Default constructor.
const
Taint.fromJson(Map<String, dynamic> json)
Creates a Taint from JSON data.
factory

Properties

effect String
Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
final
hashCode int
The hash code for this object.
no setterinherited
key String
Required. The taint key to be applied to a node.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeAdded DateTime?
TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.
final
value String?
The taint value corresponding to the taint key.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a Taint instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited