mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #53346 from krousey/upgrade_failure
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Version should be quoted so jq doesn't interpret it as numeric fixes: #https://github.com/kubernetes/kubeadm/issues/477
This commit is contained in:
commit
080db40539
@ -117,7 +117,7 @@ func masterUpgradeKubernetesAnywhere(v string) error {
|
|||||||
// modify config with specified k8s version
|
// modify config with specified k8s version
|
||||||
if _, _, err := RunCmd("sed",
|
if _, _, err := RunCmd("sed",
|
||||||
"-i.bak", // writes original to .config.bak
|
"-i.bak", // writes original to .config.bak
|
||||||
fmt.Sprintf(`s/kubernetes_version=.*$/kubernetes_version=%s/`, v),
|
fmt.Sprintf(`s/kubernetes_version=.*$/kubernetes_version=%q/`, v),
|
||||||
originalConfigPath); err != nil {
|
originalConfigPath); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user