Use "kubectl replace" in update-storage-objects.sh

Signed-off-by: Guohua Ouyang <gouyang@redhat.com>
This commit is contained in:
Guohua Ouyang 2015-08-31 15:14:27 +08:00
parent fc5604e23f
commit 4393116422

View File

@ -84,7 +84,7 @@ do
echo "Looks like ${instance} got deleted. Ignoring it"
continue
fi
output=$("${KUBECTL}" update -f "${filename}" --namespace="${namespace}") || true
output=$("${KUBECTL}" replace -f "${filename}" --namespace="${namespace}") || true
rm "${filename}"
if [ -n "${output:-}" ]
then