Closed nvanthao closed 3 months ago
Story details: https://app.shortcut.com/replicated/story/106625
analyzeHTTPResult
Sample spec
apiVersion: troubleshoot.sh/v1beta2 kind: SupportBundle metadata: name: sample spec: collectors: - http: collectorName: healthz get: url: https://dummyjson.com/test timeout: 5s analyzers: - http: collectorName: healthz outcomes: - warn: when: "error" message: Error connecting to dummyjson.com/test - pass: when: "statusCode == 200" message: Connected to dummyjson.com/test - warn: message: "Unexpected response"
apiVersion: troubleshoot.sh/v1beta2 kind: Preflight metadata: name: sample spec: collectors: - http: collectorName: healthz get: url: https://dummyjson.com/test timeout: 5s analyzers: - http: collectorName: healthz outcomes: - warn: when: "error" message: Error connecting to dummyjson.com/test - pass: when: "statusCode == 200" message: Connected to dummyjson.com/test - warn: message: "Unexpected response"
Many thanks @DexterYan !
Story details: https://app.shortcut.com/replicated/story/106625
Changes
analyzeHTTPResult
that will be re-used by in-cluster HTTP analyzer.Sample spec