Skip to content

Commit 8ed7e84

Browse files
authored
chore(dev-env): install the latest argocd version (#535)
Signed-off-by: Chetan Banavikalmutt <[email protected]>
1 parent c0c4b26 commit 8ed7e84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hack/dev-env/setup-vcluster-env.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ apply() {
119119
sed -i.bak -e "/loadBalancerIP/s/192\.168\.56/${LB_NETWORK}/" $TMP_DIR/agent-autonomous/redis-service.yaml
120120
fi
121121

122-
LATEST_RELEASE_TAG=`curl -s "https://api.github.com/repos/argoproj/argo-cd/releases/latest" | jq -r .tag_name`
122+
# Get the most recent version of Argo CD from the releases page
123+
LATEST_RELEASE_TAG=`curl -s "https://api.github.com/repos/argoproj/argo-cd/releases" | jq -r '.[].tag_name' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1`
123124
sed -i.bak -e "s/LatestReleaseTag/${LATEST_RELEASE_TAG}/" $TMP_DIR/control-plane/kustomization.yaml
124125
sed -i.bak -e "s/LatestReleaseTag/${LATEST_RELEASE_TAG}/" $TMP_DIR/agent-autonomous/kustomization.yaml
125126
sed -i.bak -e "s/LatestReleaseTag/${LATEST_RELEASE_TAG}/" $TMP_DIR/agent-managed/kustomization.yaml

0 commit comments

Comments
 (0)