Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-4496

Cannot retrieve kubernetes resources in DH 1.3

Create Doc EPIC for Fe...Prepare for Y ReleasePrepare for Z ReleaseXMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Release Note Not Required

      Description of problem:

      Accessing any of the Topology, CI, or Kubernetes tab ends with an error.

      ```
      Request failed with 500 Internal Server Error,

      {"error":"ENOENT: no such file or directory, open '/var/run/secrets/kubernetes.io/serviceaccount/token'"}

      ```

      I believe that same configuration was working fine in 1.2.

      Prerequisites (if any, like setup, operators/versions):

      OCP 4.16 (clusterbot provisioned ROSA cluster)
      DH operator 1.3.

      Steps to Reproduce

      1. Plugin configuration
        ```
      • disabled: false
        package: ./dynamic-plugins/dist/backstage-plugin-kubernetes-backend-dynamic
        pluginConfig:
        kubernetes:
        clusterLocatorMethods:
      • clusters:
      • authProvider: serviceAccount
        customResources:
      • group: argoproj.io
        apiVersion: v1alpha1
        plural: rollouts
      • apiVersion: v1
        group: route.openshift.io
        plural: routes
      • apiVersion: v1
        group: tekton.dev
        plural: pipelineruns
      • apiVersion: v1
        group: tekton.dev
        plural: taskruns
        name: cluster
        serviceAccountToken: ${K8S_SERVICEACCOUNT_TOKEN}
        skipMetricsLookup: true
        skipTLSVerify: true
        url: https://kubernetes.default.svc
        type: config
        serviceLocatorMethod:
        type: multiTenant
        ```

      Actual results:

      The pod is throwing an error when accessing resources.

      Expected results:

      Resources are displayed in the UI.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              Unassigned Unassigned
              rarnaud@redhat.com Romain Arnaud
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: