diff --git a/kubernetes/helm/centos/build_srpm.data b/kubernetes/helm/centos/build_srpm.data index 19be238cc..f5632fa03 100644 --- a/kubernetes/helm/centos/build_srpm.data +++ b/kubernetes/helm/centos/build_srpm.data @@ -3,4 +3,4 @@ TAR_NAME=helm TAR="$TAR_NAME-v$VERSION-linux-amd64.tar.gz" COPY_LIST="${CGCS_BASE}/downloads/$TAR $FILES_BASE/*" -TIS_PATCH_VER=1 +TIS_PATCH_VER=2 diff --git a/kubernetes/helm/centos/files/helm-upload b/kubernetes/helm/centos/files/helm-upload index 824b7c93d..4dbacc088 100644 --- a/kubernetes/helm/centos/files/helm-upload +++ b/kubernetes/helm/centos/files/helm-upload @@ -22,7 +22,22 @@ fi RETVAL=0 REINDEX=0 -REPO_DIR='/www/pages/helm_charts' +REPO_BASE='/www/pages/helm_charts' + +# First argument is always the repo where the charts need to be placed +if [ $# -lt 2 ]; then + echo "Usage: helm-upload .. " + exit 1 +fi + +# Make sure the repo directory exists +REPO_DIR="${REPO_BASE}/$1" +if [ ! -e $REPO_DIR ]; then + echo "$REPO_DIR doesn't exist." + exit 1 +fi + +shift 1 for FILE in "$@"; do if [ -r $FILE ]; then