Make kubectl replace unconditional

This commit is contained in:
Jordan Liggitt 2017-03-22 01:09:56 -04:00
parent 321acf00e5
commit db52b4eb04
No known key found for this signature in database
GPG Key ID: 24E7ADF9A3B42012

View File

@ -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'