mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-29 13:24:42 +00:00
Use "kubectl replace" in update-storage-objects.sh
Signed-off-by: Guohua Ouyang <gouyang@redhat.com>
This commit is contained in:
parent
fc5604e23f
commit
4393116422
@ -84,7 +84,7 @@ do
|
|||||||
echo "Looks like ${instance} got deleted. Ignoring it"
|
echo "Looks like ${instance} got deleted. Ignoring it"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
output=$("${KUBECTL}" update -f "${filename}" --namespace="${namespace}") || true
|
output=$("${KUBECTL}" replace -f "${filename}" --namespace="${namespace}") || true
|
||||||
rm "${filename}"
|
rm "${filename}"
|
||||||
if [ -n "${output:-}" ]
|
if [ -n "${output:-}" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user