Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-73815

MicroShift Gitops 1.18 fails monitor application with error - server.secretkey is missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.20.z
    • MicroShift
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • 0
    • None
    • None
    • None
    • None
    • None
    • uShift Sprint 283
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      
      When installed gitops 1.18 on the MicroShift, shows the application in unknown state.
      
      ```
      # oc get application
      NAME               SYNC STATUS   HEALTH STATUS
      spring-petclinic   Unknown       Unknown
      ```
      
      The reason why it shows unknown is caused by this.
      
      ```
      status:
        conditions:
        - lastTransitionTime: "2026-01-14T23:10:42Z"
          message: 'error getting cluster by server "https://kubernetes.default.svc": server.secretkey
            is missing'
          type: InvalidSpecError
      ```
      
      Checking the secret, it is empty.
      
      ```
      # oc get secret argocd-secret
      NAME            TYPE     DATA   AGE
      argocd-secret   Opaque   0      7d5h
      
      # oc get secret argocd-secret -o json | jq -r '.data'
      null
      ```
          

      Version-Release number of selected component (if applicable):

      MicroShift 4.20
      MicroShift Gitops 1.18
          

      How reproducible:

      - install gitops 1.18 on MicroShift
      - create the test application as per docs
          

      Actual results:

      - failing showing the state
          

      Expected results:

      
          

      Additional info:

      The 1.16 version on MicroShift 4.20 works just fine even with the secret not containing any data. Below is example with Gitops 1.16.
      
      ```
      # oc get application
      NAME               SYNC STATUS   HEALTH STATUS
      spring-petclinic   Synced        Healthy
      ```
          

              rh-ee-anjoseph Anand Francis Joseph
              rhn-support-vwalek Vladislav Walek
              None
              None
              John George John George
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: