mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Add all supported analyzers to host preflight sample. Don't log transient errors waiting for TCP connection. Begin human stdout results on new line after spinner.
23 lines
542 B
YAML
23 lines
542 B
YAML
apiVersion: troubleshoot.sh/v1beta2
|
|
kind: HostPreflight
|
|
metadata:
|
|
name: http
|
|
spec:
|
|
collectors:
|
|
- http:
|
|
collectorName: registry
|
|
get:
|
|
url: https://registry.replicated.com
|
|
analyzers:
|
|
- http:
|
|
collectorName: registry
|
|
outcomes:
|
|
- fail:
|
|
when: "error"
|
|
message: Error connecting to registry
|
|
- pass:
|
|
when: "statusCode == 404"
|
|
message: Connected to registry
|
|
- fail:
|
|
message: "Unexpected response"
|