From e437cfec01aa8069afb018905f35a7bcd01b8efd Mon Sep 17 00:00:00 2001
From: Piotr
Date: Mon, 1 Feb 2021 12:11:45 +0100
Subject: [PATCH] Document SKIP_MODULES (#63)
* Document SKIP_MODULES
* Helm status error handling
---
README.md | 7 +++++--
install-kyma.sh | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index e3f2742..6c87d3b 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ cd local-kyma
Download kyma charts to resources subfolder:
```
-./download-kyma-charts.sh
+./download-kyma-charts.sh
```
Start k3s cluster and Kyma:
@@ -150,7 +150,10 @@ Installation may fail, as the script is simple and doesn't have any retries impl
---
## Can I pick modules to install?
-Yes, just edit kyma-k3d.sh script and remove modules you don't need.
+Yes, just edit kyma-k3d.sh script and remove modules you don't need. You can also set the environment variable `SKIP_MODULES` with comma separated list of kyma components that should not be installed. Example:
+```
+export SKIP_MODULES=monitoring,tracing,kiali,logging
+```
---
## Why kyma-installer is scaled down to 0 replicas?
diff --git a/install-kyma.sh b/install-kyma.sh
index ba75e29..1312864 100755
--- a/install-kyma.sh
+++ b/install-kyma.sh
@@ -30,7 +30,7 @@ function helm_install() {
while [ $retries -ge 0 ]
do
((retries--))
- status=$(helm status $release -n $namespace -ojson | jq -r ".info.status") >/dev/null
+ status=$(helm status $release -n $namespace -ojson 2>/dev/null | jq -r ".info.status" 2>/dev/null) >/dev/null 2>&1
if [[ "$status" == "deployed" ]];
then
break