This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch release-2.0.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit fa0dd4c1aa2cb1918e5378cbc00f88372e700e6c
Author: Gaelle Fournier <gaelle.fournier.w...@gmail.com>
AuthorDate: Fri Nov 24 11:24:14 2023 +0100

    fix(doc): Handle CRDs in helm upgrade/delete
---
 helm/camel-k/README.md | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/helm/camel-k/README.md b/helm/camel-k/README.md
index 64807c12f..838d78a8e 100644
--- a/helm/camel-k/README.md
+++ b/helm/camel-k/README.md
@@ -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
 

Reply via email to