Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Remove OPENSHIFT_.. env vars in favour of oauthentication change
Browse files Browse the repository at this point in the history
  • Loading branch information
vpavlin committed Aug 5, 2020
1 parent d1e10a8 commit 5105d42
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions jupyterhub_config.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
KUBERNETES_SERVER_URL="https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT"
OAUTH_METADATA_URL="$KUBERNETES_SERVER_URL/.well-known/oauth-authorization-server"
OAUTH_ISSUER_ADDRESS=`curl -ks $OAUTH_METADATA_URL | grep '"issuer":' | sed -e 's%.*https://%https://%' -e 's%",%%'`

export OPENSHIFT_URL=$OAUTH_ISSUER_ADDRESS
export OPENSHIFT_REST_API_URL=$KUBERNETES_SERVER_URL
export OPENSHIFT_AUTH_API_URL=$OAUTH_ISSUER_ADDRESS

if [ x"$CONFIGURATION_TYPE" != x"" ]; then
if [ -f /opt/app-root/etc/jupyterhub_config-$CONFIGURATION_TYPE.sh ]; then
. /opt/app-root/etc/jupyterhub_config-$CONFIGURATION_TYPE.sh
Expand Down

0 comments on commit 5105d42

Please sign in to comment.