forked from openshift/kubernetes-nmstate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPSTREAM: <carry>: Add ssh proxy for e2e tests in CI
Signed-off-by: Christoph Stäbler <cstabler@redhat.com> (cherry picked from commit 7b74bd8) (cherry picked from commit be0ae5f) (cherry picked from commit f73ee93) (cherry picked from commit 23cfe97) (cherry picked from commit 171fe84)
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
node_name=${1} | ||
node_ip=$(oc get no ${node_name} -ojsonpath='{.status.addresses[?(.type=="InternalIP")].address}') | ||
IP="$(cat ${SHARED_DIR}/server-ip)" | ||
SSHOPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" | ||
|
||
ssh ${SSHOPTS} -i ${CLUSTER_PROFILE_DIR}/packet-ssh-key root@${IP} "ssh ${SSHOPTS} core@${node_ip} -- ${@:3}" |