removed cluster init flag

This commit is contained in:
Jacob Payne
2022-10-26 06:38:02 -07:00
parent 75efe1d3f2
commit 526278adbc

View File

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