mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Fixed bug caused by host preflights not handling empty when clauses, this cropped up because we now handle multiple host preflight results. Also expanded test coverage and added integration test script.
17 lines
355 B
YAML
17 lines
355 B
YAML
apiVersion: troubleshoot.sh/v1beta2
|
|
kind: HostPreflight
|
|
metadata:
|
|
name: timezone
|
|
spec:
|
|
collectors:
|
|
- time: {}
|
|
analyzers:
|
|
- time:
|
|
outcomes:
|
|
- pass:
|
|
when: "timezone == UTC"
|
|
message: Timezone is UTC
|
|
- fail:
|
|
when: "timezone != UTC"
|
|
message: Timezone is not UTC
|