mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
feat(collectors): Add mTLS parameters to the redis collector For a redis collector spec targeting a redis server configured to accept (m)TLS connections we need to pass in the necessary TLS parameters in order to successfully connect to the server. Both preflight and support bundle specs use this collector. This change allows us to pass in the necessary TLS parameters via inlined TLS configuration or via a secret reference. Fixes #746
25 lines
666 B
YAML
25 lines
666 B
YAML
apiVersion: troubleshoot.sh/v1beta2
|
|
kind: Preflight
|
|
metadata:
|
|
name: sample
|
|
spec:
|
|
collectors:
|
|
- redis:
|
|
collectorName: my-redis
|
|
uri: rediss://default:replicated@server:6380
|
|
tls:
|
|
skipVerify: true
|
|
analyzers:
|
|
- redis:
|
|
checkName: Must be redis 5.x or later
|
|
collectorName: my-redis
|
|
outcomes:
|
|
- fail:
|
|
when: "connected == false"
|
|
message: Cannot connect to redis server
|
|
- fail:
|
|
when: "version < 5.0.0"
|
|
message: The redis server must be at least version 5
|
|
- pass:
|
|
message: The redis connection checks out
|