Merge pull request #14 from kairos-io/remove-cluster-init

removed cluster init flag
This commit is contained in:
Jacob Payne
2022-11-02 08:07:19 -07:00
committed by GitHub

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