From 526278adbc9aeccabd321bd7f3dec71de97b28c4 Mon Sep 17 00:00:00 2001 From: Jacob Payne Date: Wed, 26 Oct 2022 06:38:02 -0700 Subject: [PATCH] removed cluster init flag --- main.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 7dcd5fd..9f96dfb 100644 --- a/main.go +++ b/main.go @@ -20,10 +20,9 @@ const ( ) type RKE2Config struct { - ClusterInit bool `yaml:"cluster-init"` - Token string `yaml:"token"` - Server string `yaml:"server"` - TLSSan []string `yaml:"tls-san"` + Token string `yaml:"token"` + Server string `yaml:"server"` + TLSSan []string `yaml:"tls-san"` } func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig { @@ -37,7 +36,6 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig { } if cluster.Role == clusterplugin.RoleInit { - rke2Config.ClusterInit = true rke2Config.Server = "" }