-
Bug
-
Resolution: Done
-
Undefined
-
None
-
openshift-4.15
-
None
-
None
-
False
-
None
-
False
-
-
-
0
-
0
-
0
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.