From 8002702c14a2a422371c4627e77d9e085dd9471e Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Tue, 3 Sep 2024 15:15:30 +0100 Subject: [PATCH] Check whether we can connect to proxy.replicated.com (#100) Signed-off-by: Evans Mungai --- host/default.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/host/default.yaml b/host/default.yaml index 5e7c3b2..6f0a8c2 100644 --- a/host/default.yaml +++ b/host/default.yaml @@ -398,6 +398,10 @@ spec: collectorName: curl-api-replicated-com get: url: https://api.replicated.com/healthz + - http: + collectorName: get-proxy-replicated-com + get: + url: https://proxy.replicated.com/ - http: collectorName: curl-get-replicated-com get: @@ -668,6 +672,18 @@ spec: message: Connected to https://api.replicated.com/healthz - warn: message: "Unexpected response" + - http: + checkName: get-proxy-replicated-com + collectorName: get-proxy-replicated-com + outcomes: + - warn: + when: "error" + message: Error connecting to https://proxy.replicated.com + - pass: + when: "statusCode == 401" + message: Connected to https://proxy.replicated.com + - warn: + message: "Unexpected response" - http: checkName: curl-get-replicated-com collectorName: curl-get-replicated-com