Skip to content

Commit

Permalink
inject working_mode (#552)
Browse files Browse the repository at this point in the history
Co-authored-by: 区锦荣 <qujinrong@chinatelecom.cn>
  • Loading branch information
ngau66 and 区锦荣 authored Nov 3, 2021
1 parent c960daf commit 7413f76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/yurtctl/cmd/join/phases/join-edge-node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7413f76

Please # to comment.