mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 10:19:54 +00:00
* moved linter to new branch * reads each yaml file separately when given multiple * split monolith lint file into more reasonably sized files * github action linter fix * lint error codes follow the rest of the codebase's standard
19 lines
513 B
YAML
19 lines
513 B
YAML
apiVersion: troubleshoot.sh/v1beta3
|
|
kind: Preflight
|
|
metadata:
|
|
name: simple-no-template
|
|
spec:
|
|
analyzers:
|
|
- docString: |
|
|
Title: Kubernetes Version Check
|
|
Requirement: Kubernetes 1.19.0 or later
|
|
clusterVersion:
|
|
checkName: Kubernetes version
|
|
outcomes:
|
|
- fail:
|
|
when: '< 1.19.0'
|
|
message: Kubernetes version must be at least 1.19.0
|
|
- pass:
|
|
when: '>= 1.19.0'
|
|
message: Kubernetes version is supported
|