uncordon-node action¶
Description¶
UncordonNodeAction marks one existing Node schedulable. It does not evict Pods or wait for readiness. An unchanged action skips and retains its last result. Change @trigger to invoke it again. Removal does not re-cordon the Node.
Source: internal/api/core/v1/uncordon_node_action.go:23
Example usage:
imports: {
kubernetes-core-v1: 'github.com/cloudboss/unobin-library-kubernetes//api/core/v1'
}
actions: {
example: kubernetes-core-v1.uncordon-node {
# Set input fields here.
}
}
Inputs¶
name
string
Name identifies the existing cluster-scoped Node by its DNS subdomain name.
expected-uid
string
ExpectedUID prevents changing a replacement Node with the same name.
timeout
optional(string)
default
10m
Timeout bounds Kubernetes requests together and defaults to 10m.
Input Constraints¶
Name rules
Requirement.
Rule logic
- Require
@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
Expected uid rules
Requirement.
Rule logic
- Require
@core.length(input.expected-uid) >= 1
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
uid
string
resource-version
string
unschedulable
boolean