Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
#17 Changing OC context
Browse files Browse the repository at this point in the history
  • Loading branch information
marcionemec-daitan committed Mar 5, 2024
1 parent 1f65855 commit f001b86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ETL.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
./oc_bin/oc version
echo $oct
echo $ocs
./oc_bin/oc login --token=$oct --server=$ocs
./oc_bin/oc config set-context `oc config current-context` --namespace=$ocp
./oc_bin/oc login $ocs --token=$oct
./oc_bin/oc project $ocp
./oc_bin/oc port-forward $ocpd $ocpf:$ocpt &
export postgresPod=$(./oc_bin/oc get pods | grep database | awk '{print $1}')
echo $postgresPod
./oc_bin/oc port-forward $postgresPod $ocpf:$ocpt &


python3 src/main.py $test_mode

0 comments on commit f001b86

Please sign in to comment.