From 06827001e6690a0ce4834b8648ab7d4088fd8a86 Mon Sep 17 00:00:00 2001 From: dvirlabs <114520947+dvirlabs@users.noreply.github.com> Date: Thu, 23 Apr 2026 12:50:46 +0300 Subject: [PATCH] Ajust the pipeline to the new api --- .woodpecker.yml | 2 +- update-gitops-status.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 23f4061..b977b82 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -94,7 +94,7 @@ steps: ANSIBLE_CONFIG: ansible.cfg SSH_PRIVATE_KEY: from_secret: SSH_PRIVATE_KEY - GITOPS_STATUS_SERVER_URL: http://gitops-status-server.observability-stack.svc.cluster.local:80 + GITOPS_STATUS_SERVER_URL: http://gitops-status-server.observability-stack.svc.cluster.local:5000 REPO_NAME: rsyslog SERVER_NAME: rsyslog-lab # Optimize Ansible for container environment diff --git a/update-gitops-status.sh b/update-gitops-status.sh index 013c632..961e111 100644 --- a/update-gitops-status.sh +++ b/update-gitops-status.sh @@ -303,12 +303,12 @@ if [ "$HTTP_CODE" -ge 200 ] && [ "$HTTP_CODE" -lt 300 ]; then echo " Verifying JSON storage on gitops-status-server..." sleep 1 # Brief delay to ensure server processed the POST - VERIFY_JSON=$(curl -s "$GITOPS_STATUS_SERVER_URL/status.json" 2>&1 || true) + VERIFY_JSON=$(curl -s "$GITOPS_STATUS_SERVER_URL/api/status" 2>&1 || true) if echo "$VERIFY_JSON" | grep -q "\"repo\".*\"$REPO_NAME\""; then echo " ✓ Verified: Latest JSON stored correctly on server" echo "" echo " Grafana Infinity datasource will now read the updated JSON from:" - echo " $GITOPS_STATUS_SERVER_URL/status.json" + echo " $GITOPS_STATUS_SERVER_URL/api/status" else echo " ⚠ Warning: Could not verify JSON storage" echo " Response from /status.json:"