Skip to content

Commit

Permalink
Add samples
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Jul 26, 2019
1 parent 5ee72f2 commit 2477616
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 18 deletions.
18 changes: 0 additions & 18 deletions examples/preflight/check-kubernetes-version.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions examples/preflight/sample-preflight.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: troubleshoot.replicated.com/v1beta1
kind: Preflight
metadata:
name: check-kubernetes-version
spec:
analyzers:
- clusterVersion:
outcomes:
- fail:
when: "< 1.14.0"
message: The application requires at Kubernetes 1.14.0 or later, and recommends 1.15.0.
uri: https://www.kubernetes.io
- warn:
when: "< 1.15.0"
message: Your cluster meets the minimum version of Kubernetes, but we recommend you update to 1.15.0 or later.
uri: https://kubernetes.io
- pass:
message: Your cluster meets the recommended and required versions of Kubernetes.
- customResourceDefinitionName:
customResourceDefinitionName: rook
outcomes:
- fail:
message: Rook is required for the application. Rook was not found in the cluster.
- pass:
message: Found a supported version of Rook installed and running in the cluster.
- imagePullSecret:
checkName: Registry credneitlas for Quay.io
registryName: quay.io
outcomes:
- fail:
message: Cannot pull from quay.io
- pass:
message: Found credentials to pull from quay.io
- storageClass:
checkName: Required storage classes
storageClassName: "expected-storage-class-name"
outcomes:
- fail:
message: The required storage class was not found in the cluster.
- pass:
message: The required storage class was found in the cluster.
Empty file.

0 comments on commit 2477616

Please sign in to comment.