aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authoryoonsoonjahng <yoonsoon.jahng@yoppworks.com>2020-05-15 18:18:23 -0400
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-07-03 06:36:13 +0000
commit3eff563da598b088d97609fc384ffe014098025b (patch)
treeb69282eed05610ad9bb9ef8d234538be87ce503f /kubernetes
parent1ba556dfafe98d298630d997251de8331528d975 (diff)
deploy.sh does not work on Mac os x because untar directory is created before helm fetch
Issue-ID: OOM-2407 Signed-off-by: yoonsoonjahng <yoonsoon.jahng@yoppworks.com> Change-Id: I20e6169bd8c7794db4c6972bfd7bca4f0bf6a910 Change-Id: I01f8c26539e6ceb828a73458d74a8185e9a5081f Signed-off-by: yoonsoonjahng <yoonsoon.jahng@yoppworks.com> (cherry picked from commit 30ccad50e3af3cb5eea5bc88855f9bbb35682d02)
Diffstat (limited to 'kubernetes')
-rwxr-xr-xkubernetes/helm/plugins/deploy/deploy.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/kubernetes/helm/plugins/deploy/deploy.sh b/kubernetes/helm/plugins/deploy/deploy.sh
index 3da189b908..bb98a3b95e 100755
--- a/kubernetes/helm/plugins/deploy/deploy.sh
+++ b/kubernetes/helm/plugins/deploy/deploy.sh
@@ -151,9 +151,6 @@ deploy() {
# clear previously cached charts
rm -rf $CACHE_DIR
- # create log driectory
- mkdir -p $LOG_DIR
-
# fetch umbrella chart (parent chart containing subcharts)
if [[ -d "$CHART_URL" ]]; then
mkdir -p $CHART_DIR
@@ -169,6 +166,9 @@ deploy() {
helm fetch $CHART_URL --untar --untardir $CACHE_DIR $VERSION
fi
+ # create log driectory
+ mkdir -p $LOG_DIR
+
# move out subcharts to process separately
mkdir -p $CACHE_SUBCHART_DIR
mv $CHART_DIR/charts/* $CACHE_SUBCHART_DIR/