Commit 52ff9c72 by tingweiwang

修改判断逻辑,如果命名空间不存在则自动存在,如果已存在,则无任何操作继续执行

1 parent 32a799e9
Showing with 1 additions and 1 deletions
...@@ -6,7 +6,7 @@ kubectl get ns |grep volcano-system ...@@ -6,7 +6,7 @@ kubectl get ns |grep volcano-system
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "volcano-system namespace already exit,continue operation" echo "volcano-system namespace already exit,continue operation"
else else
echo "namespace not found,please create namespace volcano-system" && exit 177 echo "namespace not found, autocreate namespace volcano-system" && kubectl create namespace volcano-system
fi fi
############################################# #############################################
sed_image_name () { sed_image_name () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!