PodFailurePolicyOnExitCodesRequirement class

PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.

Constructors

PodFailurePolicyOnExitCodesRequirement({String? containerName, required String operator, required List<int> values})
Default constructor.
const
PodFailurePolicyOnExitCodesRequirement.fromJson(Map<String, dynamic> json)
Creates a PodFailurePolicyOnExitCodesRequirement from JSON data.
factory

Properties

containerName String?
Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.
final
hashCode int
The hash code for this object.
no setterinherited
operator String
Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<int>
Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.
final

Methods

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

Operators

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