mirror of
https://github.com/kairos-io/provider-rke2.git
synced 2025-09-19 00:46:15 +00:00
Merge pull request #14 from kairos-io/remove-cluster-init
removed cluster init flag
This commit is contained in:
2
main.go
2
main.go
@@ -20,7 +20,6 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type RKE2Config struct {
|
type RKE2Config struct {
|
||||||
ClusterInit bool `yaml:"cluster-init"`
|
|
||||||
Token string `yaml:"token"`
|
Token string `yaml:"token"`
|
||||||
Server string `yaml:"server"`
|
Server string `yaml:"server"`
|
||||||
TLSSan []string `yaml:"tls-san"`
|
TLSSan []string `yaml:"tls-san"`
|
||||||
@@ -37,7 +36,6 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if cluster.Role == clusterplugin.RoleInit {
|
if cluster.Role == clusterplugin.RoleInit {
|
||||||
rke2Config.ClusterInit = true
|
|
||||||
rke2Config.Server = ""
|
rke2Config.Server = ""
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user