Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func getAddonPhaseFlags(name string) []string {
options.KubeconfigPath,
options.KubernetesVersion,
options.ImageRepository,
options.DryRun,
}
if name == "all" || name == "kube-proxy" {
flags = append(flags,
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/bootstraptoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func NewBootstrapTokenPhase() workflow.Phase {
options.CfgPath,
options.KubeconfigPath,
options.SkipTokenPrint,
options.DryRun,
},
Run: runBootstrapToken,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func getCertPhaseFlags(name string) []string {
options.CertificatesDir,
options.CfgPath,
options.KubernetesVersion,
options.DryRun,
}
if name == "all" || name == "apiserver" {
flags = append(flags,
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func getEtcdPhaseFlags() []string {
options.CfgPath,
options.ImageRepository,
options.Patches,
options.DryRun,
}
return flags
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func getKubeConfigPhaseFlags(name string) []string {
options.CfgPath,
options.KubeconfigDir,
options.KubernetesVersion,
options.DryRun,
}
if name == "all" || name == kubeadmconstants.KubeletKubeConfigFileName {
flags = append(flags,
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func NewKubeletStartPhase() workflow.Phase {
options.NodeCRISocket,
options.NodeName,
options.Patches,
options.DryRun,
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/kubeadm/app/cmd/phases/init/kubeletfinalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ func NewKubeletFinalizePhase() workflow.Phase {
{
Name: "all",
Short: "Run all kubelet-finalize phases",
InheritFlags: []string{options.CfgPath, options.CertificatesDir},
InheritFlags: []string{options.CfgPath, options.CertificatesDir, options.DryRun},
Example: kubeletFinalizePhaseExample,
RunAllSiblings: true,
},
{
Name: "experimental-cert-rotation",
Short: "Enable kubelet client certificate rotation",
InheritFlags: []string{options.CfgPath, options.CertificatesDir},
InheritFlags: []string{options.CfgPath, options.CertificatesDir, options.DryRun},
Run: runKubeletFinalizeCertRotation,
},
},
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/markcontrolplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func NewMarkControlPlanePhase() workflow.Phase {
InheritFlags: []string{
options.NodeName,
options.CfgPath,
options.DryRun,
},
Run: runMarkControlPlane,
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/preflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func NewPreflightPhase() workflow.Phase {
InheritFlags: []string{
options.CfgPath,
options.IgnorePreflightErrors,
options.DryRun,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/uploadcerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func NewUploadCertsPhase() workflow.Phase {
options.UploadCerts,
options.CertificateKey,
options.SkipCertificateKeyPrint,
options.DryRun,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/init/uploadconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func getUploadConfigPhaseFlags() []string {
return []string{
options.CfgPath,
options.KubeconfigPath,
options.DryRun,
}
}

Expand Down
3 changes: 3 additions & 0 deletions cmd/kubeadm/app/cmd/phases/join/controlplanejoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func getControlPlaneJoinPhaseFlags(name string) []string {
if name != "mark-control-plane" {
flags = append(flags, options.APIServerAdvertiseAddress)
}
if name != "update-status" {
flags = append(flags, options.DryRun)
}
return flags
}

Expand Down
4 changes: 4 additions & 0 deletions cmd/kubeadm/app/cmd/phases/join/controlplaneprepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func getControlPlanePreparePhaseFlags(name string) []string {
options.TokenStr,
options.CertificateKey,
options.Patches,
options.DryRun,
}
case "download-certs":
flags = []string{
Expand All @@ -93,6 +94,7 @@ func getControlPlanePreparePhaseFlags(name string) []string {
options.TLSBootstrapToken,
options.TokenStr,
options.CertificateKey,
options.DryRun,
}
case "certs":
flags = []string{
Expand All @@ -118,6 +120,7 @@ func getControlPlanePreparePhaseFlags(name string) []string {
options.TLSBootstrapToken,
options.TokenStr,
options.CertificateKey,
options.DryRun,
}
case "control-plane":
flags = []string{
Expand All @@ -126,6 +129,7 @@ func getControlPlanePreparePhaseFlags(name string) []string {
options.CfgPath,
options.ControlPlane,
options.Patches,
options.DryRun,
}
default:
flags = []string{}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/join/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func NewKubeletStartPhase() workflow.Phase {
options.TLSBootstrapToken,
options.TokenStr,
options.Patches,
options.DryRun,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/join/preflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func NewPreflightPhase() workflow.Phase {
options.TokenDiscoveryCAHash,
options.TokenDiscoverySkipCAHash,
options.CertificateKey,
options.DryRun,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/reset/cleanupnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func NewCleanupNodePhase() workflow.Phase {
options.CertificatesDir,
options.NodeCRISocket,
options.CleanupTmpDir,
options.DryRun,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/reset/preflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func NewPreflightPhase() workflow.Phase {
InheritFlags: []string{
options.IgnorePreflightErrors,
options.ForceReset,
options.DryRun,
},
}
}
Expand Down
1 change: 1 addition & 0 deletions cmd/kubeadm/app/cmd/phases/reset/removeetcdmember.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func NewRemoveETCDMemberPhase() workflow.Phase {
Run: runRemoveETCDMemberPhase,
InheritFlags: []string{
options.KubeconfigPath,
options.DryRun,
},
}
}
Expand Down