Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrushuk committed Jan 17, 2021
1 parent 6dff07b commit 1360e7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions terraform/files/scripts/argocd_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ curl -sSL -o "$ARGOCD_PATH" "https://github.com/argoproj/argo-cd/releases/downlo
chmod +x "$ARGOCD_PATH"

# Wait for URL to be responsive
ARGOCD_HEALTH_CHECK_URL="https://$ARGOCD_FQDN/healthz"
echo "Checking ArgoCD is ready on [$ARGOCD_HEALTH_CHECK_URL]..."
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' $ARGOCD_HEALTH_CHECK_URL)" != "200" ]]; do
echo "Checking ArgoCD is ready on [$ARGOCD_HEALTH_CHECK_URL]..."
echo "Still waiting for ArgoCD to be ready on [$ARGOCD_HEALTH_CHECK_URL]..."
sleep 10
done

Expand Down
1 change: 0 additions & 1 deletion terraform/helm_argocd.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ resource "null_resource" "argocd_configure" {

command = <<-EOT
chmod -R +x ./files/scripts
ls -lah ./files/scripts
timeout 5m ./files/scripts/argocd_config.sh
EOT
}
Expand Down

0 comments on commit 1360e7e

Please sign in to comment.