Skip to content

Commit

Permalink
Extend the update documentation for CRD changes (#5781)
Browse files Browse the repository at this point in the history
Co-authored-by: Reto Lehmann <[email protected]>
  • Loading branch information
knative-prow-robot and ReToCode authored Nov 30, 2023
1 parent 9f47cc5 commit 331bdcb
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions docs/install/upgrade/upgrade-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,34 @@ kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1
-f https://github.com/knative/eventing/releases/download/knative-v1.2.0/eventing.yaml \
```

### Run post-install tools after the upgrade
### Run post-install jobs when necessary

In some upgrades there are some steps that must happen after the actual
upgrade, and these are identified in the release notes.
When the release notes point out that a Knative custom resource is transitioned to a new version, for example like:

> DomainMapping/v1alpha1 is deprecated - use v1beta1 APIs
you need to run post-install jobs (see [here for details](#upgrade-existing-resources-to-the-latest-stored-version)):

```bash
# Serving
kubectl apply -f {{ artifact(repo="serving",file="serving-post-install-jobs.yaml")}}

# Eventing
kubectl apply -f {{ artifact(repo="eventing",file="eventing-post-install.yaml")}}
```

Make sure that the jobs complete successfully before continuing:

```bash
# Serving
kubectl get job -n knative-serving

# Eventing
kubectl get job -n knative-eventing
```

!!! caution
You also have to transition the version in your custom resource YAML files if you store them externally, e.g. in git via GitOps.

## Verifying the upgrade

Expand Down

0 comments on commit 331bdcb

Please sign in to comment.