From a0719d5dd702e3dea26bbb6c0a02428076c63483 Mon Sep 17 00:00:00 2001 From: hysyeah Date: Thu, 5 Dec 2024 13:11:18 +0800 Subject: [PATCH] fix: propagate space url to upgrade job env (#112) --- pkg/apiserver/handler_upgrade.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/apiserver/handler_upgrade.go b/pkg/apiserver/handler_upgrade.go index 93dfcb2..060a12c 100644 --- a/pkg/apiserver/handler_upgrade.go +++ b/pkg/apiserver/handler_upgrade.go @@ -136,6 +136,10 @@ func (h *Handler) upgrade(req *restful.Request, resp *restful.Response) { Name: "dev_mode", Value: mode, }, + { + Name: "OLARES_SPACE_URL", + Value: os.Getenv("OLARES_SPACE_URL"), + }, }, }, // container 1 }, // end containers