From 648ee297152fdf9dbd7d767e4ac0101e6367df93 Mon Sep 17 00:00:00 2001 From: Gaelle Fournier Date: Fri, 24 Nov 2023 11:24:14 +0100 Subject: [PATCH] fix(doc): Handle CRDs in helm upgrade/delete --- helm/camel-k/README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/helm/camel-k/README.md b/helm/camel-k/README.md index 64807c12f0..2cddf38262 100644 --- a/helm/camel-k/README.md +++ b/helm/camel-k/README.md @@ -56,15 +56,30 @@ 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: + +``` +$ kubectl replace -k "https://github.com/apache/camel-k/config/crd?ref=vx.y.z" +$ helm upgrade camel-k/camel-k --version x.y.z +``` + ## 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 + +$ kubectl delete -k "https://github.com/apache/camel-k/config/crd?ref=vx.y.z" +``` ## Configuration