Skip to content

Commit

Permalink
fix: miss version
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostloda committed Feb 20, 2025
1 parent 5cee57f commit 6f9788d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/runtime/kubernetes/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
)

const (
upgradeApplyCmd = "kubeadm upgrade apply --certificate-renewal=false --ignore-preflight-errors=all --yes"
upgradeApplyCmd = "kubeadm upgrade apply --certificate-renewal=false --ignore-preflight-errors=all --yes %s"
upradeNodeCmd = "kubeadm upgrade node --certificate-renewal=false --skip-phases preflight"
//drainNodeCmd = "kubectl drain %s --ignore-daemonsets"
cordonNodeCmd = "kubectl cordon %s"
Expand Down Expand Up @@ -110,7 +110,7 @@ func (k *KubeadmRuntime) upgradeMaster0(version string) error {
//install kubeadm:{version} at master0
fmt.Sprintf(installKubeadmCmd, kubeBinaryPath),
//execute kubeadm upgrade apply {version} at master0
fmt.Sprintf(upgradeApplyCmd),
fmt.Sprintf(upgradeApplyCmd, version),
//kubectl cordon <node-to-cordon>
fmt.Sprintf(cordonNodeCmd, master0Name),
//install kubelet:{version},kubectl{version} at master0
Expand Down

0 comments on commit 6f9788d

Please sign in to comment.