mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Refactor node taint conditions
This commit is contained in:
parent
e190f39112
commit
221db2bd6b
@ -5004,7 +5004,7 @@ func TestValidatePod(t *testing.T) {
|
|||||||
Name: "pod-forgiveness-invalid",
|
Name: "pod-forgiveness-invalid",
|
||||||
Namespace: "ns",
|
Namespace: "ns",
|
||||||
},
|
},
|
||||||
Spec: extendPodSpecwithTolerations(validPodSpec(nil), []api.Toleration{{Key: "node.alpha.kubernetes.io/notReady", Operator: "Exists", Effect: "NoExecute", TolerationSeconds: &[]int64{-2}[0]}}),
|
Spec: extendPodSpecwithTolerations(validPodSpec(nil), []api.Toleration{{Key: "node.kubernetes.io/not-ready", Operator: "Exists", Effect: "NoExecute", TolerationSeconds: &[]int64{-2}[0]}}),
|
||||||
},
|
},
|
||||||
{ // docker default seccomp profile
|
{ // docker default seccomp profile
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
@ -5562,7 +5562,7 @@ func TestValidatePod(t *testing.T) {
|
|||||||
Name: "pod-forgiveness-invalid",
|
Name: "pod-forgiveness-invalid",
|
||||||
Namespace: "ns",
|
Namespace: "ns",
|
||||||
},
|
},
|
||||||
Spec: extendPodSpecwithTolerations(validPodSpec(nil), []api.Toleration{{Key: "node.alpha.kubernetes.io/notReady", Operator: "Exists", Effect: "NoSchedule", TolerationSeconds: &[]int64{20}[0]}}),
|
Spec: extendPodSpecwithTolerations(validPodSpec(nil), []api.Toleration{{Key: "node.kubernetes.io/not-ready", Operator: "Exists", Effect: "NoSchedule", TolerationSeconds: &[]int64{20}[0]}}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"must be a valid pod seccomp profile": {
|
"must be a valid pod seccomp profile": {
|
||||||
|
@ -20,7 +20,7 @@ const (
|
|||||||
// When feature-gate for TaintBasedEvictions=true flag is enabled,
|
// When feature-gate for TaintBasedEvictions=true flag is enabled,
|
||||||
// TaintNodeNotReady would be automatically added by node controller
|
// TaintNodeNotReady would be automatically added by node controller
|
||||||
// when node is not ready, and removed when node becomes ready.
|
// when node is not ready, and removed when node becomes ready.
|
||||||
TaintNodeNotReady = "node.alpha.kubernetes.io/notReady"
|
TaintNodeNotReady = "node.kubernetes.io/not-ready"
|
||||||
|
|
||||||
// When feature-gate for TaintBasedEvictions=true flag is enabled,
|
// When feature-gate for TaintBasedEvictions=true flag is enabled,
|
||||||
// TaintNodeUnreachable would be automatically added by node controller
|
// TaintNodeUnreachable would be automatically added by node controller
|
||||||
|
Loading…
Reference in New Issue
Block a user