Skip to content

Commit d57d606

Browse files
authored
Merge pull request kubernetes#73495 from neolit123/phase-control-plane
kubeadm: fix missing 'all' in 'init phase control-plane'
2 parents bb9a12d + 52e62a7 commit d57d606

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/kubeadm/app/cmd/phases/controlplane.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ var (
3434
controlPlaneExample = normalizer.Examples(`
3535
# Generates all static Pod manifest files for control plane components,
3636
# functionally equivalent to what is generated by kubeadm init.
37-
kubeadm init phase control-plane
37+
kubeadm init phase control-plane all
3838
3939
# Generates all static Pod manifest files using options read from a configuration file.
40-
kubeadm init phase control-plane --config config.yaml
40+
kubeadm init phase control-plane all --config config.yaml
4141
`)
4242

4343
controlPlanePhaseProperties = map[string]struct {
@@ -80,6 +80,7 @@ func NewControlPlanePhase() workflow.Phase {
8080
Name: "all",
8181
Short: "Generates all static Pod manifest files",
8282
InheritFlags: getControlPlanePhaseFlags("all"),
83+
Example: controlPlaneExample,
8384
RunAllSiblings: true,
8485
},
8586
newControlPlaneSubPhase(kubeadmconstants.KubeAPIServer),

0 commit comments

Comments
 (0)