diff --git a/mise-tasks/indri-services-check b/mise-tasks/indri-services-check index e7fc9a8..d1cd525 100755 --- a/mise-tasks/indri-services-check +++ b/mise-tasks/indri-services-check @@ -91,19 +91,17 @@ check_service "blumeops-pg" "kubectl --context=minikube-indri -n databases get p echo "" echo "ArgoCD app sync status:" -printf "%-20s %-12s %-12s %s\n" "NAME" "SYNC" "HEALTH" "REVISION" -while read -r name sync health rev; do - # Truncate revision to first 7 chars - short_rev="${rev:0:7}" +printf "%-20s %-12s %-12s %s\n" "NAME" "SYNC" "HEALTH" "TARGET" +while read -r name sync health target; do if [[ "$sync" == "Synced" ]]; then - printf "%-20s ${GREEN}%-12s${NC} %-12s %s\n" "$name" "$sync" "$health" "$short_rev" + printf "%-20s ${GREEN}%-12s${NC} %-12s %s\n" "$name" "$sync" "$health" "$target" elif [[ "$sync" == "OutOfSync" ]]; then - printf "%-20s ${RED}%-12s${NC} %-12s %s\n" "$name" "$sync" "$health" "$short_rev" + printf "%-20s ${RED}%-12s${NC} %-12s %s\n" "$name" "$sync" "$health" "$target" FAILED=1 else - printf "%-20s %-12s %-12s %s\n" "$name" "$sync" "$health" "$short_rev" + printf "%-20s %-12s %-12s %s\n" "$name" "$sync" "$health" "$target" fi -done < <(kubectl --context=minikube-indri get applications -n argocd --no-headers -o custom-columns='NAME:.metadata.name,SYNC:.status.sync.status,HEALTH:.status.health.status,REVISION:.status.sync.revision' 2>/dev/null) +done < <(kubectl --context=minikube-indri get applications -n argocd --no-headers -o custom-columns='NAME:.metadata.name,SYNC:.status.sync.status,HEALTH:.status.health.status,TARGET:.spec.source.targetRevision' 2>/dev/null) echo "" if [ $FAILED -eq 0 ]; then