Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preflight #4

Merged
merged 1 commit into from
Jul 17, 2019
Merged

Preflight #4

merged 1 commit into from
Jul 17, 2019

Conversation

marccampbell
Copy link
Member

@marccampbell marccampbell commented Jul 16, 2019

This adds initial support for running e2e preflights. I've refactored them to not be dependent on the collector/CRD running. This allows the CLI to execute them and manage the collection and analysis phases independent of the CRD. But the CRD continues to share the same codepath.

A single analyzer is implemented:

apiVersion: troubleshoot.replicated.com/v1beta1
kind: Preflight
metadata:
  name: preflight-sample
spec:
  analyzers:
    - clusterVersion:
        outcomes:
          - fail:
              when: "< 1.14.0"
              message: You need more kubernetes
          - warn:
              when: "< 1.15.0"
              message: You have barely enough kubernetes
          - pass:
              message: Good job keeping k8s current

@marccampbell marccampbell marked this pull request as ready for review July 17, 2019 14:50
@marccampbell marccampbell merged commit 9b4b03c into master Jul 17, 2019
croomes added a commit to croomes/troubleshoot that referenced this pull request Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants