From 8f35992cffb63d1e2ff1ec71915dfe6fc9fc94f1 Mon Sep 17 00:00:00 2001 From: Antoine Date: Sat, 28 Mar 2020 20:24:41 +0100 Subject: [PATCH] K3S_SECRET env variable to K3S_CLUSTER_SECRET According to this https://github.com/rancher/k3s/blob/master/README.md#L55 K3S cluster secret variable is K3S_CLUSTER_SECRET. --- cli/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/commands.go b/cli/commands.go index 8480599b..b9133e9b 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -806,7 +806,7 @@ func AddNode(c *cli.Context) error { func addNodeToK3s(c *cli.Context, clusterSpec *ClusterSpec, nodeRole string) error { k3sURLEnvVar := fmt.Sprintf("K3S_URL=%s", c.String("k3s")) - k3sConnSecretEnvVar := fmt.Sprintf("K3S_SECRET=%s", c.String("k3s-secret")) + k3sConnSecretEnvVar := fmt.Sprintf("K3S_CLUSTER_SECRET=%s", c.String("k3s-secret")) if c.IsSet("k3s-token") { k3sConnSecretEnvVar = fmt.Sprintf("K3S_TOKEN=%s", c.String("k3s-token")) }