kdash-rs / kdash

A simple and fast dashboard for Kubernetes
https://kdash.cli.rs
MIT License
2.06k stars 78 forks source link

Error "Failed to get dynamic resources. SerdeError(Error("invalid value: string \"v1alpha3\", expected v1", line: 3, column: 25))" #432

Open davidhulick opened 7 months ago

davidhulick commented 7 months ago

Describe the bug An error is displayed when opening kdash on a cluster with dynamic resources.

Failed to get dynamic resources. SerdeError(Error("invalid value: string \"v1alpha3\", expected v1", line: 3, column: 25)) 2024-01-30_09:31:31

CRD that causes error:

      ---
      apiVersion: cert-manager.io/v1alpha3
      kind: Certificate
      metadata:
        name: ####
        namespace: NAMESPACE
      spec:
        commonName: ####
        dnsNames:
        - cluster.local
        duration: 2160h
        issuerRef:
          name: ca-issuer
        keySize: 2048
        organization:
        - ####
        secretName: ####
        usages:
        - server auth
        - client auth

To Reproduce

  1. open kdash on cluster with certain CRDs
  2. error in screenshot above is displayed

Expected behavior Valid dynamic resources are displayed.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):