mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
ref: pre v2.15 cleanup (#2871)
This commit is contained in:
parent
3799525103
commit
489e07677e
12 changed files with 35 additions and 215 deletions
|
@ -44,22 +44,8 @@ func (c *Client) Upgrade(ctx context.Context, kubernetesComponents components.Co
|
|||
}
|
||||
defer conn.Close()
|
||||
|
||||
// While we're transitioning between version 2.13 and 2.14, we need to
|
||||
// expect an upgrade-agent that does not yet understand the
|
||||
// KubernetesComponents proto field. Therefore, we pass the kubeadm
|
||||
// component twice: once via KubeadmUrl/KubeadmHash, once as part of the
|
||||
// kubernetesComponents argument.
|
||||
kubeadm, err := kubernetesComponents.GetKubeadmComponent()
|
||||
if err != nil {
|
||||
return fmt.Errorf("expected a kubeadm Component: %w", err)
|
||||
}
|
||||
protoClient := upgradeproto.NewUpdateClient(conn)
|
||||
_, err = protoClient.ExecuteUpdate(ctx, &upgradeproto.ExecuteUpdateRequest{
|
||||
// TODO(burgerdev): remove these fields after releasing 2.14.
|
||||
// %< ---------------------------------
|
||||
KubeadmUrl: kubeadm.Url,
|
||||
KubeadmHash: kubeadm.Hash,
|
||||
// %< ---------------------------------
|
||||
WantedKubernetesVersion: WantedKubernetesVersion,
|
||||
KubernetesComponents: kubernetesComponents,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue