mirror of
https://github.com/kairos-io/provider-rke2.git
synced 2025-09-18 07:52:37 +00:00
removed cluster init flag
This commit is contained in:
8
main.go
8
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 = ""
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user