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
99dd9d3c
Commit
99dd9d3c
authored
Apr 24, 2019
by
Rand01ph
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Remove hyperkube short aliases
parent
bd12b013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
24 deletions
+4
-24
main.go
cmd/hyperkube/main.go
+4
-24
No files found.
cmd/hyperkube/main.go
View file @
99dd9d3c
...
...
@@ -87,30 +87,10 @@ func commandFor(basename string, defaultCommand *cobra.Command, commands []func(
func
NewHyperKubeCommand
(
stopCh
<-
chan
struct
{})
(
*
cobra
.
Command
,
[]
func
()
*
cobra
.
Command
)
{
// these have to be functions since the command is polymorphic. Cobra wants you to be top level
// command to get executed
apiserver
:=
func
()
*
cobra
.
Command
{
ret
:=
kubeapiserver
.
NewAPIServerCommand
(
stopCh
)
// add back some unfortunate aliases that should be removed
ret
.
Aliases
=
[]
string
{
"apiserver"
}
return
ret
}
controller
:=
func
()
*
cobra
.
Command
{
ret
:=
kubecontrollermanager
.
NewControllerManagerCommand
()
// add back some unfortunate aliases that should be removed
ret
.
Aliases
=
[]
string
{
"controller-manager"
}
return
ret
}
proxy
:=
func
()
*
cobra
.
Command
{
ret
:=
kubeproxy
.
NewProxyCommand
()
// add back some unfortunate aliases that should be removed
ret
.
Aliases
=
[]
string
{
"proxy"
}
return
ret
}
scheduler
:=
func
()
*
cobra
.
Command
{
ret
:=
kubescheduler
.
NewSchedulerCommand
()
// add back some unfortunate aliases that should be removed
ret
.
Aliases
=
[]
string
{
"scheduler"
}
return
ret
}
apiserver
:=
func
()
*
cobra
.
Command
{
return
kubeapiserver
.
NewAPIServerCommand
(
stopCh
)
}
controller
:=
func
()
*
cobra
.
Command
{
return
kubecontrollermanager
.
NewControllerManagerCommand
()
}
proxy
:=
func
()
*
cobra
.
Command
{
return
kubeproxy
.
NewProxyCommand
()
}
scheduler
:=
func
()
*
cobra
.
Command
{
return
kubescheduler
.
NewSchedulerCommand
()
}
kubectlCmd
:=
func
()
*
cobra
.
Command
{
return
kubectl
.
NewDefaultKubectlCommand
()
}
kubelet
:=
func
()
*
cobra
.
Command
{
return
kubelet
.
NewKubeletCommand
(
stopCh
)
}
cloudController
:=
func
()
*
cobra
.
Command
{
return
cloudcontrollermanager
.
NewCloudControllerManagerCommand
()
}
...
...
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