From 7413f767e1e22953e721d61fe7be8ae51208bc43 Mon Sep 17 00:00:00 2001 From: Ngau <37956821+ngau66@users.noreply.github.com> Date: Thu, 4 Nov 2021 02:37:56 +0800 Subject: [PATCH] inject working_mode (#552) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 区锦荣 --- pkg/yurtctl/cmd/join/phases/join-edge-node.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/yurtctl/cmd/join/phases/join-edge-node.go b/pkg/yurtctl/cmd/join/phases/join-edge-node.go index bf64f7b840c..78d83e7facb 100644 --- a/pkg/yurtctl/cmd/join/phases/join-edge-node.go +++ b/pkg/yurtctl/cmd/join/phases/join-edge-node.go @@ -44,6 +44,7 @@ import ( "github.com/openyurtio/openyurt/pkg/yurtctl/constants" "github.com/openyurtio/openyurt/pkg/yurtctl/util/edgenode" + "github.com/openyurtio/openyurt/pkg/yurthub/util" "github.com/pkg/errors" ) @@ -137,6 +138,7 @@ func addYurthubStaticYaml(cfg *kubeadmapi.JoinConfiguration, podManifestPath str "__kubernetes_service_addr__": fmt.Sprintf("https://%s", cfg.Discovery.BootstrapToken.APIServerEndpoint), "__yurthub_image__": yurthubImage, "__join_token__": cfg.Discovery.BootstrapToken.Token, + "__working_mode__": string(util.WorkingModeEdge), }) if err := ioutil.WriteFile(filepath.Join(podManifestPath, defaultYurthubStaticPodFileName), []byte(yurthubTemplate), 0600); err != nil {