Merge pull request #210 from RouxAntoine/fix/add-k3s-node-bad-token

[Fix] K3S_SECRET env variable to K3S_CLUSTER_SECRET (thanks @RouxAntoine)
This commit is contained in:
Thorsten Klein 2020-03-29 17:18:03 +02:00 committed by GitHub
commit a5489e08f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"))
}