Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Remove hyperkube migration
Browse files Browse the repository at this point in the history
Without this patch, hyperkube will be migrated from 1.17.4 to
1.17.x, which is not something we want.

This is a re-implementation for backport reasons of the
patch #1293 hyperkube migration

Signed-off-by: Jean-Philippe Evrard <[email protected]>
Signed-off-by: Miquel Sabaté Solà <[email protected]>
  • Loading branch information
mssola committed Sep 21, 2020
1 parent 4aa2183 commit 9e42dd9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/skuba/actions/node/upgrade/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ func Apply(client clientset.Interface, target *deployments.Target) error {
return errors.Wrap(err, "error adding target information to init configuration")
}

// Upgrade 1.17 to 1.18.
// This updated UseHyperKube field in-memory (unsets it).
// Note: The cluster cm is uploaded at the end of the kubeadm process, as usual.
// The whole paragraph can be removed when upgrading from 1.17 is removed.
if currentClusterVersion.Minor() == 17 {
initCfg.UseHyperKubeImage = false
}

kubeadm.UpdateClusterConfigurationWithClusterVersion(initCfg, nodeVersionInfoUpdate.Update.APIServerVersion)
initCfgContents, err = kubeadmconfigutil.MarshalInitConfigurationToBytes(initCfg, schema.GroupVersion{
Group: "kubeadm.k8s.io",
Expand Down

0 comments on commit 9e42dd9

Please sign in to comment.