Uploaded image for project: 'OpenShift Hosted Control Plane'
  1. OpenShift Hosted Control Plane
  2. HOSTEDCP-1281

Creating of HostedCluster fails on webhook

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Undefined
    • None
    • openshift-4.15
    • None
    • None
    • False
    • None
    • False
    • 0
    • 0
    • 0

    Description

      When creating a HostedCluster from the cli, with KubeVirt platform and external infra-cluster, the creation is failed with this message:

      hypershift_framework.go:223: failed to create cluster, tearing down: failed to apply object "e2e-clusters-jqrxx/example-kk2sm": admission webhook "hostedclusters.hypershift.openshift.io" denied the request: Secret "example-kk2sm-infra-credentials" not found

      The reason for that is the HosterCluster CR is created before the kubeconfig secret of the external infra-cluster is created. The HostedCluster creation webhook is trying to access the external infra-cluster, fails to find the secret that is not created yet. 

      Attachments

        Activity

          People

            nunnatsa Nahshon Unna Tsameret
            nunnatsa Nahshon Unna Tsameret
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: