Retry kubectl test replace on conflict

parent a19210f4
......@@ -666,16 +666,15 @@ run_pod_tests() {
}
}
__EOF__
kubectl replace -f - "${kube_flags[@]}" << __EOF__
{
kubectl-with-retry replace "${kube_flags[@]}" -f <(echo '{
"kind": "Node",
"apiVersion": "v1",
"metadata": {
"name": "node-v1-test",
"annotations": {"a":"b"}
}
}
__EOF__
}')
# Post-condition: the node command succeeds
kube::test::get_object_assert "node node-v1-test" "{{.metadata.annotations.a}}" 'b'
kubectl delete node node-v1-test "${kube_flags[@]}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment