PodFailurePolicyRule class

PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.

Constructors

PodFailurePolicyRule({required String action, PodFailurePolicyOnExitCodesRequirement? onExitCodes, required List<PodFailurePolicyOnPodConditionsPattern> onPodConditions})
Default constructor.
const
PodFailurePolicyRule.fromJson(Map<String, dynamic> json)
Creates a PodFailurePolicyRule from JSON data.
factory

Properties

action String
Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:
final
hashCode int
The hash code for this object.
no setterinherited
onExitCodes PodFailurePolicyOnExitCodesRequirement?
Represents the requirement on the container exit codes.
final
onPodConditions List<PodFailurePolicyOnPodConditionsPattern>
Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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