github.com/argoproj/argo-cd@v1.8.7/manifests/ha/base/redis-ha/generate.sh (about) 1 #!/bin/sh -xe 2 3 helm2 dependency update ./chart --skip-refresh 4 5 # This step is necessary because we do not want the helm tests to be included 6 templates=$(tar -tf ./chart/charts/redis-ha-*.tgz | grep 'redis-ha/templates/redis-.*.yaml') 7 helm_execute="" 8 for tmpl in ${templates}; do 9 helm_execute="${helm_execute} -x charts/${tmpl}" 10 done 11 12 AUTOGENMSG="# This is an auto-generated file. DO NOT EDIT" 13 echo "${AUTOGENMSG}" > ./chart/upstream.yaml 14 15 helm2 template ./chart \ 16 --name argocd \ 17 --namespace argocd \ 18 --values ./chart/values.yaml \ 19 ${helm_execute} \ 20 >> ./chart/upstream_orig.yaml 21 22 sed -e 's/check inter 1s/check inter 3s/' ./chart/upstream_orig.yaml >> ./chart/upstream.yaml && rm ./chart/upstream_orig.yaml 23 sed -i 's/timeout server 30s/timeout server 6m/' ./chart/upstream.yaml 24 sed -i 's/timeout client 30s/timeout client 6m/' ./chart/upstream.yaml