Skip to content

Commit

Permalink
Check whether we can connect to proxy.replicated.com (#100)
Browse files Browse the repository at this point in the history
Signed-off-by: Evans Mungai <[email protected]>
  • Loading branch information
banjoh authored Sep 3, 2024
1 parent 37b8abf commit 8002702
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions host/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8002702

Please sign in to comment.