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
Fixing linting

Fixing linting
  • Loading branch information
JoaoFula authored and mmorhun committed Nov 21, 2024
1 parent de63210 commit dc24120
Showing 1 changed file with 3 additions and 2 deletions.
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)"
echo -n "$CONSOLE_URL" > "$(step.results.consoleURL.path)"

0 comments on commit dc24120

Please sign in to comment.