mirror of https://github.com/k3s-io/k3s
Merge pull request #3155 from briandowns/rke2-issue-856
remove hidden attribute from cluster flags and related codepull/3169/head
commit
ad4f04d2fc
|
@ -1,7 +0,0 @@
|
||||||
// +build no_etcd
|
|
||||||
|
|
||||||
package cmds
|
|
||||||
|
|
||||||
const (
|
|
||||||
hideClusterFlags = true
|
|
||||||
)
|
|
|
@ -10,7 +10,6 @@ import (
|
||||||
const (
|
const (
|
||||||
defaultSnapshotRentention = 5
|
defaultSnapshotRentention = 5
|
||||||
defaultSnapshotIntervalHours = 12
|
defaultSnapshotIntervalHours = 12
|
||||||
hideClusterFlags = true
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
|
@ -394,21 +393,18 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
|
||||||
},
|
},
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "server,s",
|
Name: "server,s",
|
||||||
Hidden: hideClusterFlags,
|
|
||||||
Usage: "(experimental/cluster) Server to connect to, used to join a cluster",
|
Usage: "(experimental/cluster) Server to connect to, used to join a cluster",
|
||||||
EnvVar: version.ProgramUpper + "_URL",
|
EnvVar: version.ProgramUpper + "_URL",
|
||||||
Destination: &ServerConfig.ServerURL,
|
Destination: &ServerConfig.ServerURL,
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "cluster-init",
|
Name: "cluster-init",
|
||||||
Hidden: hideClusterFlags,
|
|
||||||
Usage: "(experimental/cluster) Initialize a new cluster using embedded Etcd",
|
Usage: "(experimental/cluster) Initialize a new cluster using embedded Etcd",
|
||||||
EnvVar: version.ProgramUpper + "_CLUSTER_INIT",
|
EnvVar: version.ProgramUpper + "_CLUSTER_INIT",
|
||||||
Destination: &ServerConfig.ClusterInit,
|
Destination: &ServerConfig.ClusterInit,
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "cluster-reset",
|
Name: "cluster-reset",
|
||||||
Hidden: hideClusterFlags,
|
|
||||||
Usage: "(experimental/cluster) Forget all peers and become sole member of a new cluster",
|
Usage: "(experimental/cluster) Forget all peers and become sole member of a new cluster",
|
||||||
EnvVar: version.ProgramUpper + "_CLUSTER_RESET",
|
EnvVar: version.ProgramUpper + "_CLUSTER_RESET",
|
||||||
Destination: &ServerConfig.ClusterReset,
|
Destination: &ServerConfig.ClusterReset,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
// +build !no_etcd
|
|
||||||
|
|
||||||
package cluster
|
package cluster
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in New Issue