Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3f5fb701
Commit
3f5fb701
authored
Nov 11, 2019
by
Darren Shepherd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move server arguments to experimental for dqlite related
parent
24fa3785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
server.go
pkg/cli/cmds/server.go
+32
-32
No files found.
pkg/cli/cmds/server.go
View file @
3f5fb701
...
@@ -130,38 +130,6 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
...
@@ -130,38 +130,6 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
EnvVar
:
"K3S_TOKEN_FILE"
,
EnvVar
:
"K3S_TOKEN_FILE"
,
},
},
cli
.
StringFlag
{
cli
.
StringFlag
{
Name
:
"agent-token"
,
Usage
:
"(cluster) Shared secret used to join agents to the cluster, but not agents"
,
Destination
:
&
ServerConfig
.
AgentToken
,
EnvVar
:
"K3S_AGENT_TOKEN"
,
},
cli
.
StringFlag
{
Name
:
"agent-token-file"
,
Usage
:
"(cluster) File containing the agent secret"
,
Destination
:
&
ServerConfig
.
AgentTokenFile
,
EnvVar
:
"K3S_AGENT_TOKEN_FILE"
,
},
cli
.
StringFlag
{
Name
:
"server,s"
,
Usage
:
"(cluster) Server to connect to, used to join a cluster"
,
EnvVar
:
"K3S_URL"
,
Destination
:
&
ServerConfig
.
ServerURL
,
},
cli
.
BoolFlag
{
Name
:
"cluster-init"
,
Hidden
:
hideDqlite
,
Usage
:
"(cluster) Initialize new cluster master"
,
EnvVar
:
"K3S_CLUSTER_INIT"
,
Destination
:
&
ServerConfig
.
ClusterInit
,
},
cli
.
BoolFlag
{
Name
:
"cluster-reset"
,
Hidden
:
hideDqlite
,
Usage
:
"(cluster) Forget all peers and become a single cluster new cluster master"
,
EnvVar
:
"K3S_CLUSTER_RESET"
,
Destination
:
&
ServerConfig
.
ClusterReset
,
},
cli
.
StringFlag
{
Name
:
"write-kubeconfig,o"
,
Name
:
"write-kubeconfig,o"
,
Usage
:
"(client) Write kubeconfig for admin client to this file"
,
Usage
:
"(client) Write kubeconfig for admin client to this file"
,
Destination
:
&
ServerConfig
.
KubeConfigOutput
,
Destination
:
&
ServerConfig
.
KubeConfigOutput
,
...
@@ -260,6 +228,38 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
...
@@ -260,6 +228,38 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
Usage
:
"(experimental) Run rootless"
,
Usage
:
"(experimental) Run rootless"
,
Destination
:
&
ServerConfig
.
Rootless
,
Destination
:
&
ServerConfig
.
Rootless
,
},
},
cli
.
StringFlag
{
Name
:
"agent-token"
,
Usage
:
"(experimental/cluster) Shared secret used to join agents to the cluster, but not agents"
,
Destination
:
&
ServerConfig
.
AgentToken
,
EnvVar
:
"K3S_AGENT_TOKEN"
,
},
cli
.
StringFlag
{
Name
:
"agent-token-file"
,
Usage
:
"(experimental/cluster) File containing the agent secret"
,
Destination
:
&
ServerConfig
.
AgentTokenFile
,
EnvVar
:
"K3S_AGENT_TOKEN_FILE"
,
},
cli
.
StringFlag
{
Name
:
"server,s"
,
Usage
:
"(experimental/cluster) Server to connect to, used to join a cluster"
,
EnvVar
:
"K3S_URL"
,
Destination
:
&
ServerConfig
.
ServerURL
,
},
cli
.
BoolFlag
{
Name
:
"cluster-init"
,
Hidden
:
hideDqlite
,
Usage
:
"(experimental/cluster) Initialize new cluster master"
,
EnvVar
:
"K3S_CLUSTER_INIT"
,
Destination
:
&
ServerConfig
.
ClusterInit
,
},
cli
.
BoolFlag
{
Name
:
"cluster-reset"
,
Hidden
:
hideDqlite
,
Usage
:
"(experimental/cluster) Forget all peers and become a single cluster new cluster master"
,
EnvVar
:
"K3S_CLUSTER_RESET"
,
Destination
:
&
ServerConfig
.
ClusterReset
,
},
// Hidden/Deprecated flags below
// Hidden/Deprecated flags below
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment