Skip to content

Commit

Permalink
fix(doc): Handle CRDs in helm upgrade/delete
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Nov 30, 2023
1 parent 340d5a7 commit df3d6b3
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions helm/camel-k/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,38 @@ additional parameters that can be set during installation.

> **Tip**: List all releases using `helm list`
## Upgrading the Chart

If you are upgrading the `camel-k` Deployment, you should always use a specific version of the chart and pre-install the CRDS:

```bash
# Upgrade the CRDs
$ curl -LO "https://github.com/apache/camel-k/raw/main/docs/charts/camel-k-x.y.z.tgz"
$ tar xvzf camel-k-x.y.z.tgz
$ kubectl replace -f camel-k/crds
# Upgrade the `camel-k` Deployment
$ helm upgrade camel-k/camel-k --version x.y.z
```

> **Note**: If you are using a custom ClusterRole instead of the default one `camel-k:edit` from `camel-k/crds/cluster-role.yaml` you should handle it appropriately.

## Uninstalling the Chart

To uninstall/delete the `camel-k` Deployment:

```bash
$ helm delete camel-k
$ helm uninstall camel-k
```

The command removes all the Kubernetes resources installed.
The command removes all of the Kubernetes resources installed, except the CRDs.

To remove them:
```bash
$ curl -LO "https://github.com/apache/camel-k/raw/main/docs/charts/camel-k-x.y.z.tgz"
$ tar xvzf camel-k-x.y.z.tgz
$ kubectl delete -f camel-k/crds
```

## Configuration

Expand Down

0 comments on commit df3d6b3

Please sign in to comment.