Uploaded image for project: 'OpenShift Hive'
  1. OpenShift Hive
  2. HIVE-3025

Incorrect secret name for metadata json in cluster adoption - hiveutil

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The getAdoptMetadataJSONSecretName() function returns the wrong secret name, causing it to conflict with the admin kubeconfig secret name. https://github.com/openshift/hive/blob/master/pkg/clusterresource/builder.go#L691-L692 

      When adopting a cluster with --adopt-metadata-json, two different secrets would have the same name:

      • Admin kubeconfig secret: {clusterName}-adopted-admin-kubeconfig
      • Metadata JSON secret: {clusterName}-adopted-admin-kubeconfig (should be {clusterName}-metadata-json)

       

              efried.openshift Eric Fried
              mihuang@redhat.com Mingxia Huang
              None
              None
              None
              Mingxia Huang Mingxia Huang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: