replicatedhq / troubleshoot

Preflight Checks and Support Bundles Framework for Kubernetes Applications
https://troubleshoot.sh
Apache License 2.0
539 stars 92 forks source link

feat: Detect EC as a distribution #1529

Closed banjoh closed 2 months ago

banjoh commented 2 months ago

Description, Motivation and Context

Detect Replicated's embedded cluster as a k8s distribution

Docs PR: https://github.com/replicatedhq/troubleshoot.sh/pull/557

Using this spec

apiVersion: troubleshoot.sh/v1beta2
kind: Analyzer
spec:
  analyzers:
    - distribution:
        outcomes:
          - pass:
              when: "== embedded-cluster"
              message: embedded-cluster is supported
          - fail:
              message: There is no supported distribution

I get these results from a support bundle collected from EC

analyze --analyzers spec.yaml support-bundle-2024-04-25T14_24_51.tar.gz
Pass: Kubernetes Distribution
 embedded-cluster is supported

Checklist

Does this PR introduce a breaking change?