Files
troubleshoot/examples/preflight/text-analyze.yaml
2020-09-01 19:57:11 +00:00

20 lines
520 B
YAML

apiVersion: troubleshoot.sh/v1beta2
kind: Preflight
metadata:
name: example-preflight-checks
spec:
collectors:
- data:
name: config/replicas.txt
data: "2"
analyzers:
- textAnalyze:
checkName: Replica Count
fileName: config/replicas.txt
regexGroups: '(?P<Replicas>\d+)'
outcomes:
- fail:
when: "Replicas < 5"
message: That's not enough replicas!
- pass:
message: You've selected at leat 5 replicas