apiVersion: troubleshoot.sh/v1beta2
kind: Preflight
metadata:
  name: sample
spec:
  collectors:
    - clusterInfo: {}
    - clusterResources: {}
  analyzers:
    - distribution:
        exclude: true
        outcomes:
          - pass:
              when: "== k3s"
              message: K3S is a supported distribution
          - warn:
              message: Unable to determine the distribution of Kubernetes
    - clusterVersion:
        exclude: true
        outcomes:
        - pass:
            message: Cluster is up to date
