Skip to content

Commit 281ada9

Browse files
committed
feat: add config.nodeName to joiner
Signed-off-by: Jack Yu <[email protected]>
1 parent a2c20cd commit 281ada9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/join/join.go

+4
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ func ToInstruction(config *config.Config, dataDir string) (*applyinator.Instruct
5959
env = addEnv(env, "CATTLE_ROLE_CONTROLPLANE", fmt.Sprint(controlPlane))
6060
env = addEnv(env, "CATTLE_ROLE_WORKER", fmt.Sprint(worker))
6161

62+
if config.NodeName != "" {
63+
env = addEnv(env, "CATTLE_NODE_NAME", config.NodeName)
64+
}
65+
6266
return &applyinator.Instruction{
6367
Name: "join",
6468
SaveOutput: true,

0 commit comments

Comments
 (0)