* feat: argo-cd can deploy Redis HA Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: add unarchived subchart redis-ha Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: Redis HA upgraded since 4.3.4 contains a bug on the chart Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * docs: how to configure Redis and Redis HA * fix: add missing chart folder Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: Helm bug with subcharts and alias * fix: Chart version * fix: Remove archived subcharts Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: lint script Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * Revert "fix: lint script" This reverts commit f4b81cbb6fc6d6c271f07b3d271a110b43edb9dd. * fix: lint and publish scripts Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: align test-image versions Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: remove sudo from scripts Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: add required repositories to helm Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: simplify expression Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> * fix: bump up chart version Signed-off-by: Carlos Juan Gómez Peñalver <carlosjuangp@gmail.com> Co-authored-by: Spencer Gilbert <Spencer.Gilbert@gmail.com>
43 lines
1.2 KiB
Bash
Executable file
43 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
set -eux
|
|
|
|
SRCROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
GIT_PUSH=${GIT_PUSH:-false}
|
|
|
|
rm -rf $SRCROOT/output && git clone -b gh-pages git@github.com:argoproj/argo-helm.git $SRCROOT/output
|
|
|
|
helm repo add stable https://kubernetes-charts.storage.googleapis.com
|
|
helm repo add argoproj https://argoproj.github.io/argo-helm
|
|
|
|
for dir in $(find $SRCROOT/charts -mindepth 1 -maxdepth 1 -type d);
|
|
do
|
|
rm -rf $dir/charts
|
|
|
|
name=$(basename $dir)
|
|
|
|
if [ $(helm dep list $dir 2>/dev/null| wc -l) -gt 1 ]
|
|
then
|
|
# Bug with Helm subcharts with hyphen on them
|
|
# https://github.com/argoproj/argo-helm/pull/270#issuecomment-608695684
|
|
if [ "$name" == "argo-cd" ]
|
|
then
|
|
echo "Restore ArgoCD RedisHA subchart"
|
|
git checkout $dir
|
|
fi
|
|
echo "Processing chart dependencies"
|
|
helm --debug dep build $dir
|
|
fi
|
|
|
|
echo "Processing $dir"
|
|
helm --debug package $dir
|
|
done
|
|
|
|
cp $SRCROOT/*.tgz output/
|
|
cd $SRCROOT/output && helm repo index .
|
|
|
|
cd $SRCROOT/output && git status
|
|
|
|
if [ "$GIT_PUSH" == "true" ]
|
|
then
|
|
cd $SRCROOT/output && git add . && git commit -m "Publish charts" && git push git@github.com:argoproj/argo-helm.git gh-pages
|
|
fi
|