Skip to content

Commit

Permalink
update guest_kubeconfig to nested_kubeconfig (#42817)
Browse files Browse the repository at this point in the history
  • Loading branch information
heliubj18 authored Aug 30, 2023
1 parent bf8ef30 commit aa01286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,5 +378,5 @@ echo "$(date) Approved the agents, waiting for the installation to get completed
oc wait --all=true agent -n ${HOSTED_CONTROL_PLANE_NAMESPACE} --for=jsonpath='{.status.debugInfo.state}'=added-to-existing-cluster --timeout=45m

# Download guest cluster kubeconfig
echo "$(date) Setup guest_kubeconfig"
hypershift create kubeconfig --namespace=${CLUSTERS_NAMESPACE} --name=${HOSTED_CLUSTER_NAME} >${SHARED_DIR}/guest_kubeconfig
echo "$(date) Setup nested_kubeconfig"
hypershift create kubeconfig --namespace=${CLUSTERS_NAMESPACE} --name=${HOSTED_CLUSTER_NAME} >${SHARED_DIR}/nested_kubeconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ chain:
set -x
echo "Waiting for clusteroperators to be ready"
export KUBECONFIG=${SHARED_DIR}/guest_kubeconfig
export KUBECONFIG=${SHARED_DIR}/nested_kubeconfig
until \
oc wait clusterversion/version --for='condition=Available=True' > /dev/null; do
echo "$(date --rfc-3339=seconds) Clusteroperators not yet ready"
Expand Down

0 comments on commit aa01286

Please sign in to comment.