Skip to content

Commit

Permalink
feat: upgrade ArgoCD to 2.0.4
Browse files Browse the repository at this point in the history
Note: thanks to argoproj/argo-cd#6402, it's not
required anymore to retry.
  • Loading branch information
mcanevet committed Aug 11, 2021
1 parent 9427e65 commit abeaa46
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Setup ArgoCD
run: |
mkdir "$GITHUB_WORKSPACE/bin"
curl -L https://github.com/argoproj/argo-cd/releases/download/v2.0.3/argocd-linux-amd64 > "$GITHUB_WORKSPACE/bin/argocd"
curl -L https://github.com/argoproj/argo-cd/releases/download/v2.0.4/argocd-linux-amd64 > "$GITHUB_WORKSPACE/bin/argocd"
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
chmod +x "$GITHUB_WORKSPACE/bin/argocd"
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
- name: Setup ArgoCD
run: |
mkdir "$GITHUB_WORKSPACE/bin"
curl -L https://github.com/argoproj/argo-cd/releases/download/v2.0.3/argocd-linux-amd64 > "$GITHUB_WORKSPACE/bin/argocd"
curl -L https://github.com/argoproj/argo-cd/releases/download/v2.0.4/argocd-linux-amd64 > "$GITHUB_WORKSPACE/bin/argocd"
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
chmod +x "$GITHUB_WORKSPACE/bin/argocd"
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
- name: ArgoCD app diff with ${{ github.ref }}
id: app-diff
uses: docker://argoproj/argocd:v2.0.3
uses: docker://argoproj/argocd:v2.0.4
env:
KUBECONFIG: ${{ github.workspace }}/kubeconfig
APP_OF_APPS_VALUES_0 : ${{ github.workspace }}/values0.yaml
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
variables:
ARGOCD_VERSION: "2.0.3"
ARGOCD_VERSION: "2.0.4"
TERRAFORM_VERSION: "1.0.0"
TF_ROOT: "terraform"

Expand Down
4 changes: 1 addition & 3 deletions modules/argocd-helm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ resource "null_resource" "wait_for_app_of_apps" {
KUBECONFIG=$(mktemp /tmp/kubeconfig.XXXXXX)
echo "$KUBECONFIG_CONTENT" > "$KUBECONFIG"
export KUBECONFIG
for i in `seq 1 60`; do
argocd app wait apps --sync --health --timeout 30 && rm "$KUBECONFIG" && exit 0
done
argocd app wait apps --sync --health --timeout 1800 && rm "$KUBECONFIG" && exit 0
echo TIMEOUT
rm "$KUBECONFIG"
exit 1
Expand Down
3 changes: 3 additions & 0 deletions modules/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ ${yamlencode({"extraApplicationSets": extra_application_sets})}

argo-cd:
installCRDs: false
global:
image:
tag: "v2.0.4"
configs:
%{ if length(repositories) > 0 }
repositoryCredentials:
Expand Down

0 comments on commit abeaa46

Please sign in to comment.