From 3b4e60ce93506dc1d453baacf1eb9f5387990135 Mon Sep 17 00:00:00 2001 From: Trevor McKay Date: Thu, 28 Feb 2019 11:49:59 -0500 Subject: [PATCH] Change oc env command for newer versions of OpenShift --- openshift/demo-auth.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openshift/demo-auth.sh b/openshift/demo-auth.sh index 57b877a..8218373 100755 --- a/openshift/demo-auth.sh +++ b/openshift/demo-auth.sh @@ -69,7 +69,7 @@ admin_pwd=$(oc logs -c kdc $server_pod | head -n 1 | sed 's/.*Your\ KDC\ passwor app_pod=$(oc get pods -l app=client -o name) -principal=$(oc env $app_pod --list | grep OPTIONS | grep -o "[a-z]*\@[A-Z\.]*") +principal=$(oc rsh $app_pod env | grep OPTIONS | grep -o "[a-z]*\@[A-Z\.]*") realm=$(echo $principal | sed 's/[a-z]*\@//') # create principal