rollout-status action¶
Description¶
RolloutStatusAction observes one Deployment, StatefulSet or DaemonSet without changing it. It pins the first UID and generation; deletion, replacement, termination or a newer generation fails instead of following another rollout. Paused Deployments and OnDelete strategies are rejected.
StatefulSet partition and starting ordinal limit which replicas must update. Zero eligible replicas or zero DaemonSet nodes can complete without running Pods. This action does not replace the waits of resource create or update operations.
Unchanged actions can skip and retain historical outputs. Use @trigger or an always trigger to request another observation. Planning does not wait.
Source: internal/api/apps/v1/rollout_status_action.go:27
Example usage:
imports: {
kubernetes-apps-v1: 'github.com/cloudboss/unobin-library-kubernetes//api/apps/v1'
}
actions: {
example: kubernetes-apps-v1.rollout-status {
# Set input fields here.
}
}
Inputs¶
kind
string
name
string
namespace
optional(string)
Namespace defaults to the configured kubeconfig or library namespace.
expected-uid
optional(string)
ExpectedUID optionally constrains the first observed object.
expected-generation
optional(integer)
ExpectedGeneration optionally constrains the first generation; accepts positive integers through 9007199254740991 for exact JSON decoding.
timeout
optional(string)
Timeout bounds Kubernetes HTTP requests and polling; defaults to 10m.
Input Constraints¶
Kind rules
Requirement.
Rule logic
- Require
true
&& (input.kind == 'Deployment' || input.kind == 'StatefulSet' || input.kind == 'DaemonSet')
Name rules
Requirement.
Rule logic
- Require
true
&& @core.is-match(input.name, '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$')
&& @core.length(input.name) <= 253
Namespace rules
Conditional requirement.
Rule logic
- When
input.namespace != null- Require
@core.is-match(input.namespace, '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')
&& @core.length(input.namespace) <= 63
Expected uid rules
Conditional requirement.
Rule logic
- When
input.expected-uid != null- Require
@core.length(input.expected-uid) >= 1
Expected generation rules
Conditional requirement.
Rule logic
- When
input.expected-generation != null- Require
input.expected-generation > 0
&& input.expected-generation <= 9007199254740991
&& @core.remainder(input.expected-generation, 1) == 0
Timeout rules
If set, timeout must be a positive duration.
Rule logic
- Require
@core.is-format(input.timeout, 'positive-duration')
Outputs¶
server
string
api-version
string
kind
string
name
string
namespace
string
uid
string
generation
integer
observed-generation
integer