Browse Source

update makefile

Zhang Li 2 years ago
parent
commit
93f88429ab
2 changed files with 6 additions and 1 deletions
  1. 5 1
      Makefile
  2. 1 0
      dag-jupyter/internal/api/helm-wrapper.go

+ 5 - 1
Makefile

@@ -22,4 +22,8 @@ txtest:
 
 txprod:
 	@docker build --target image-txprod -t registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txprod .
-	@docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txprod
+	@docker push registry.cn-hangzhou.aliyuncs.com/sxtest/$(NAME):txprod
+
+
+rsync:
+	@rsync -azP --exclude ".*/"  --exclude "tmp/" --exclude ".*/vendor/" `pwd` sxkj@192.168.199.109:/home/sxkj/zhangli/

+ 1 - 0
dag-jupyter/internal/api/helm-wrapper.go

@@ -29,6 +29,7 @@ func genParam(req *types.CreateJupyterInfo) map[string]interface{} {
 	settings = append(settings, fmt.Sprintf("ingress.jupyterlab.hosts[0].host=%s", req.Host))
 	settings = append(settings, fmt.Sprintf("ingress.jupyterlab.hosts[0].paths[0].path=%s", req.Path))
 	settings = append(settings, fmt.Sprintf("ingress.jupyterlab.hosts[0].paths[0].pathType=%s", req.PathType))
+	logx.Info(req.IngressClass, "-------  len: ", len(req.IngressClass))
 	if len(req.IngressClass) > 0 {
 		// ingressClass, _ := json.Marshal(map[string]string{
 		// 	"kubernetes.io/ingress.class": req.IngressClass,