struct
Kubernetes::PodFailurePolicyRule
- Kubernetes::PodFailurePolicyRule
- Struct
- Value
- Object
Overview
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.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_batch_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#action : String | Nil
Specifies the action taken on a pod failure when the requirements are satisfied.
-
#action=(action : String | Nil)
Specifies the action taken on a pod failure when the requirements are satisfied.
-
#on_exit_codes : PodFailurePolicyOnExitCodesRequirement | Nil
Represents the requirement on the container exit codes.
-
#on_exit_codes=(on_exit_codes : PodFailurePolicyOnExitCodesRequirement | Nil)
Represents the requirement on the container exit codes.
-
#on_pod_conditions : Array(PodFailurePolicyOnPodConditionsPattern) | Nil
Represents the requirement on the pod conditions.
-
#on_pod_conditions=(on_pod_conditions : Array(PodFailurePolicyOnPodConditionsPattern) | Nil)
Represents the requirement on the pod conditions.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:
- FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated.
- FailIndex: indicates that the pod's index is marked as Failed and will not be restarted.
- Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created.
- Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.
Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:
- FailJob: indicates that the pod's job is marked as Failed and all running pods are terminated.
- FailIndex: indicates that the pod's index is marked as Failed and will not be restarted.
- Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created.
- Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.
Represents the requirement on the container exit codes.
Represents the requirement on the container exit codes.
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.
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.