mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Make kubectl replace unconditional
This commit is contained in:
parent
321acf00e5
commit
db52b4eb04
@ -666,14 +666,17 @@ run_pod_tests() {
|
||||
}
|
||||
}
|
||||
__EOF__
|
||||
kubectl-with-retry replace "${kube_flags[@]}" -f <(echo '{
|
||||
kubectl replace -f - "${kube_flags[@]}" << __EOF__
|
||||
{
|
||||
"kind": "Node",
|
||||
"apiVersion": "v1",
|
||||
"metadata": {
|
||||
"name": "node-v1-test",
|
||||
"annotations": {"a":"b"}
|
||||
"annotations": {"a":"b"},
|
||||
"resourceVersion": "0"
|
||||
}
|
||||
}')
|
||||
}
|
||||
__EOF__
|
||||
|
||||
# Post-condition: the node command succeeds
|
||||
kube::test::get_object_assert "node node-v1-test" "{{.metadata.annotations.a}}" 'b'
|
||||
|
Loading…
Reference in New Issue
Block a user