Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CAFV-476]Update UPGRADES.md with the commands for missing CAPVCD versions #646

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 32 additions & 5 deletions docs/UPGRADES.md
Original file line number Diff line number Diff line change
@@ -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`