Commit af801d8b by wangtingwei

fix date错误

1 parent d63280a3
Showing with 2 additions and 2 deletions
......@@ -2,7 +2,7 @@
#wangtingwei
IMAGE_NAME=`cat image_list.txt` #获取最新launcher镜像完整名字
PRI_IMAGE_NAME=`echo $IMAGE_NAME |awk -F '/' '{print $NF}'` #截断只保留镜像名字和tag部分
date=date +%F-%H-%M
date=`date +%F-%H-%M`
workspace=/workspace/seetaas
####################################################################
kubectl get ns |grep volcano-system
......@@ -20,7 +20,7 @@ sed -i s@IMAGE_NAME@$IMAGE_NAME@g /tmp/deployment-$date.yaml
####################################################################
private_sed_image_name() {
cp -a $workspace/src/kpl-launcher/k8s_yaml/volcano/volcano-development.yaml /tmp/volcano-development-$date.yaml #拷贝到临时目录,sed不修改模板文件。这样就避免了sed修改出错的问题,不需要在recover sed
cp -a $workspace/src/kpl-launcher/k8s_yaml/kpl-launcher/deployment.yaml /tmp/deployment-$date.yaml
cp -a $workspace/src/kpl-launcher/k8s_yaml/kpl-launcher/deployment.yaml /tmp/deployment-$date.yaml·
sed -i s@hub.kce.ksyun.com/aivc/volcanosh/vc-scheduler:latest@harbor_host/k8s/vc-scheduler:latest@g /tmp/volcano-development-$date.yaml
sed -i s@hub.kce.ksyun.com/aivc/volcanosh/vc-webhook-manager:latest@harbor_host/k8s/vc-webhook-manager:latest@g /tmp/volcano-development-$date.yaml
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!