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

Failing analysis results appear when running preflights #1625

Closed
banjoh opened this issue Sep 26, 2024 · 1 comment · Fixed by #1626
Closed

Failing analysis results appear when running preflights #1625

banjoh opened this issue Sep 26, 2024 · 1 comment · Fixed by #1626

Comments

@banjoh
Copy link
Member

banjoh commented Sep 26, 2024

Bug Description

When we run preflights using the CLI using a spec that defines a location to upload results (uploadResultsTo), we see failing analysis results appearing. This only appears when using preflight CLI

Expected Behavior

We shouldn't see result failures appear.

Steps To Reproduce

Watch https://asciinema.org/a/Bo9k5KxeAjXTKGkdLzDKYJGj7 recording

Spec from the recording

apiVersion: troubleshoot.sh/v1beta2
kind: Preflight
spec:
  analyzers:
    - clusterVersion:
        outcomes:
          - fail:
              when: "< 1.16.0"
              message: The application requires Kubernetes 1.16.0 or later
              uri: https://kubernetes.io
          - warn:
              when: "< 1.17.0"
              message: Your cluster meets the minimum version of Kubernetes, but we recommend you update to 1.17.0 or later.
              uri: https://kubernetes.io
          - pass:
              message: Your cluster meets the recommended and required versions of Kubernetes.
  uploadResultsTo: http://localhost:8800

Additional Context

Include the following information.

  • Troubleshoot version: v0.103.0
@banjoh
Copy link
Member Author

banjoh commented Sep 26, 2024

@banjoh banjoh closed this as completed Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant