mirror of https://github.com/k3s-io/k3s
update e2e shell script due to newly introduced unreachable:NoSchedule taint when the node is in Unknown status
parent
7c024273a4
commit
61e6acb1a8
|
@ -72,15 +72,15 @@ __EOF__
|
||||||
__EOF__
|
__EOF__
|
||||||
|
|
||||||
# taint/untaint
|
# taint/untaint
|
||||||
# Pre-condition: node has no taints
|
# Pre-condition: node doesn't have dedicated=foo:PreferNoSchedule taint
|
||||||
kube::test::get_object_assert "nodes 127.0.0.1" "{{.spec.taints}}" '<no value>'
|
kube::test::get_object_assert "nodes 127.0.0.1" '{{range .spec.taints}}{{if eq .key \"dedicated\"}}{{.key}}={{.value}}:{{.effect}}{{end}}{{end}}' "" # expect no output
|
||||||
# taint can add a taint
|
# taint can add a taint
|
||||||
kubectl taint node 127.0.0.1 dedicated=foo:PreferNoSchedule
|
kubectl taint node 127.0.0.1 dedicated=foo:PreferNoSchedule
|
||||||
kube::test::get_object_assert "nodes 127.0.0.1" '{{range .spec.taints}}{{.effect}}{{end}}' 'PreferNoSchedule'
|
kube::test::get_object_assert "nodes 127.0.0.1" '{{range .spec.taints}}{{if eq .key \"dedicated\"}}{{.key}}={{.value}}:{{.effect}}{{end}}{{end}}' "dedicated=foo:PreferNoSchedule"
|
||||||
# taint can remove a taint
|
# taint can remove a taint
|
||||||
kubectl taint node 127.0.0.1 dedicated-
|
kubectl taint node 127.0.0.1 dedicated-
|
||||||
# Post-condition: node has no taints
|
# Post-condition: node doesn't have dedicated=foo:PreferNoSchedule taint
|
||||||
kube::test::get_object_assert "nodes 127.0.0.1" "{{.spec.taints}}" '<no value>'
|
kube::test::get_object_assert "nodes 127.0.0.1" '{{range .spec.taints}}{{if eq .key \"dedicated\"}}{{.key}}={{.value}}:{{.effect}}{{end}}{{end}}' "" # expect no output
|
||||||
|
|
||||||
### kubectl cordon update with --dry-run does not mark node unschedulable
|
### kubectl cordon update with --dry-run does not mark node unschedulable
|
||||||
# Pre-condition: node is schedulable
|
# Pre-condition: node is schedulable
|
||||||
|
|
Loading…
Reference in New Issue