Skip to content

Commit

Permalink
Merge pull request crossplane#2326 from muvaf/dont-take-them-away
Browse files Browse the repository at this point in the history
Add annotation commands to 1.2 upgrade section to prevent CRs from being removed
  • Loading branch information
muvaf committed May 22, 2021
2 parents d005048 + 8f2b230 commit 6622b16
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/guides/upgrading-to-v1.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,20 @@ helm --namespace crossplane-system upgrade crossplane crossplane-stable/crosspla

## Upgrading to v1.2.x and Subsequent Versions

To upgrade from the currently installed version, run:
Since `v1.2.0`, we do not include any custom resource instances in our Helm chart.
This means the `Lock` object and `Provider`s and `Configuration`s you might have
possibly installed via Helm values will get deleted when you upgrade to `v1.2.x`.
The following commands will instruct Helm not to delete any instances of those
types:

```console
for name in $(kubectl get locks.pkg.crossplane.io -o name); do kubectl annotate $name 'helm.sh/resource-policy=keep'; done
for name in $(kubectl get providers.pkg.crossplane.io -o name); do kubectl annotate $name 'helm.sh/resource-policy=keep'; done
for name in $(kubectl get configurations.pkg.crossplane.io -o name); do kubectl annotate $name 'helm.sh/resource-policy=keep'; done
```

After annotations are in place you can upgrade from the currently installed version
by running:

```console
# Update to the latest stable Helm chart for the desired version
Expand Down

0 comments on commit 6622b16

Please sign in to comment.