Skip to content

Commit

Permalink
exporting kubeconfig to set ephemeral cluster as context for oc
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoFula committed Nov 19, 2024
1 parent f6f1da3 commit 390b60d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ spec:
API_SERVER_URL=$("${OC[@]}" get cti "$CLUSTER_NAME" -o=jsonpath='{.status.apiServerURL}')
echo "API Server URL: $API_SERVER_URL"
echo -n "$API_SERVER_URL" > "$(step.results.apiServerURL.path)"
CONSOLE_URL=https://$("${OC[@]}" get route console -n openshift-console -o go-template --template="{{.spec.host}}")
export KUBECONFIG=$CLUSTER_KUBECONFIG
CONSOLE_URL=https://$(oc get route console -n openshift-console -o go-template --template="{{.spec.host}}")
echo "Console URL: $CONSOLE_URL"
echo -n "$CONSOLE_URL" > "$(step.results.consoleURL.path)"

0 comments on commit 390b60d

Please sign in to comment.