Merge pull request #70666 from neolit123/phase-fix-hidden

kubeadm: make sure that commands are not added for hidden phases
pull/58/head
k8s-ci-robot 2018-11-05 20:59:47 -08:00 committed by GitHub
commit c6c88f1bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 8 deletions

View File

@ -301,6 +301,11 @@ func (e *Runner) BindToCommand(cmd *cobra.Command) {
// generate all the nested subcommands for invoking single phases
subcommands := map[string]*cobra.Command{}
e.visitAll(func(p *phaseRunner) error {
// skip hidden phases
if p.Hidden {
return nil
}
// creates nested phase subcommand
var phaseCmd = &cobra.Command{
Use: strings.ToLower(p.Name),

View File

@ -80,7 +80,6 @@ docs/admin/kubeadm_init_phase_kubeconfig_kubelet.md
docs/admin/kubeadm_init_phase_kubeconfig_scheduler.md
docs/admin/kubeadm_init_phase_kubelet-start.md
docs/admin/kubeadm_init_phase_preflight.md
docs/admin/kubeadm_init_phase_wait-control-plane.md
docs/admin/kubeadm_join.md
docs/admin/kubeadm_reset.md
docs/admin/kubeadm_token.md
@ -176,7 +175,6 @@ docs/man/man1/kubeadm-init-phase-kubeconfig-scheduler.1
docs/man/man1/kubeadm-init-phase-kubeconfig.1
docs/man/man1/kubeadm-init-phase-kubelet-start.1
docs/man/man1/kubeadm-init-phase-preflight.1
docs/man/man1/kubeadm-init-phase-wait-control-plane.1
docs/man/man1/kubeadm-init-phase.1
docs/man/man1/kubeadm-init.1
docs/man/man1/kubeadm-join.1

View File

@ -1,3 +0,0 @@
This file is autogenerated, but we've stopped checking such files into the
repository to reduce the need for rebases. Please run hack/generate-docs.sh to
populate this file.

View File

@ -1,3 +0,0 @@
This file is autogenerated, but we've stopped checking such files into the
repository to reduce the need for rebases. Please run hack/generate-docs.sh to
populate this file.