From 498653a61631befd77aca5d2194c919798e917a9 Mon Sep 17 00:00:00 2001 From: sayloo Date: Tue, 30 Apr 2024 13:05:21 -0700 Subject: [PATCH] Updates UPGRADES.md with the commands for missing CAPVCD versions Signed-off-by: sayloo --- docs/UPGRADES.md | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/docs/UPGRADES.md b/docs/UPGRADES.md index aa937b3c6..82a3b119f 100644 --- a/docs/UPGRADES.md +++ b/docs/UPGRADES.md @@ -1,14 +1,41 @@ # CAPVCD Upgrades -## Upgrades from CAPVCD 0.5.x to 1.0.0 +## Upgrade to CAPVCD 1.3.0 +```sh +clusterctl upgrade apply --management-group capi-system/cluster-api \ +--core capi-system/cluster-api:v1.5.4 \ +--bootstrap capi-kubeadm-bootstrap-system/kubeadm:v1.5.4 \ +--control-plane capi-kubeadm-control-plane-system/kubeadm:v1.5.4 \ +--infrastructure capvcd-system/vcd:v1.3.0 +``` -1. Delete the capvcd 0.5.x deployment - `kubectl delete deployment -n capvcd-system capvcd-controller-manager` -2. Run `clusterctl upgrade apply --contract v1beta1` -3. Configure [clusterctl](CLUSTERCTL.md#clusterctl_set_up) to refer to local CAPVCD 1.0.0 manifests. -4. Run `clusterctl init -i vcd:v1.0.0` +## Upgrade to CAPVCD 1.2.0 +```sh +clusterctl upgrade apply --management-group capi-system/cluster-api \ +--core capi-system/cluster-api:v1.4.0 \ +--bootstrap capi-kubeadm-bootstrap-system/kubeadm:v1.4.0 \ +--control-plane capi-kubeadm-control-plane-system/kubeadm:v1.4.0 \ +--infrastructure capvcd-system/vcd:v1.2.0 +``` + +## Upgrade to CAPVCD 1.1.0 +```sh +clusterctl upgrade apply --management-group capi-system/cluster-api \ +--core capi-system/cluster-api:v1.4.0 \ +--bootstrap capi-kubeadm-bootstrap-system/kubeadm:v1.4.0 \ +--control-plane capi-kubeadm-control-plane-system/kubeadm:v1.4.0 \ +--infrastructure capvcd-system/vcd:v1.1.0 +``` ## Upgrades from CAPVCD 1.0.x to 1.0.2 To upgrade CAPVCD from version 1.0.x to 1.0.2, a patch for CAPVCD deployment to update the image will be needed. Please execute the following command for each management cluster: ```kubectl patch deployment -n capvcd-system capvcd-controller-manager -p '{"spec": {"template": {"spec": {"containers": [{"name": "manager", "image": "projects.registry.vmware.com/vmware-cloud-director/cluster-api-provider-cloud-director:1.0.2"}]}}}}'``` +## Upgrades from CAPVCD 0.5.x to 1.0.0 + +1. Delete the capvcd 0.5.x deployment - `kubectl delete deployment -n capvcd-system capvcd-controller-manager` +2. Run `clusterctl upgrade apply --contract v1beta1` +3. Configure [clusterctl](CLUSTERCTL.md#clusterctl_set_up) to refer to local CAPVCD 1.0.0 manifests. +4. Run `clusterctl init -i vcd:v1.0.0` +