aboutsummaryrefslogtreecommitdiffstats
path: root/kud/tests/_functions.sh
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2021-05-10 21:25:48 +0000
committerGerrit Code Review <gerrit@onap.org>2021-05-10 21:25:48 +0000
commit59a703bb8c443c2b7d6b7cdab9e8448b944e5cf2 (patch)
tree3e208cf9740d90f6e8a0bdb8a70b11707a8c9b43 /kud/tests/_functions.sh
parent3f5cacd8a183aa9feee9fb0cdc6231215c19c206 (diff)
parentcc302424c0b129267235157640be28b45597fef2 (diff)
Merge "EMCO deploy of addons"
Diffstat (limited to 'kud/tests/_functions.sh')
-rwxr-xr-xkud/tests/_functions.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/kud/tests/_functions.sh b/kud/tests/_functions.sh
index 720470eb..7a3e97ab 100755
--- a/kud/tests/_functions.sh
+++ b/kud/tests/_functions.sh
@@ -25,6 +25,11 @@ function print_msg {
echo -e "${RED} $msg ---------------------------------------${NC}"
}
+function ssh_cluster {
+ master_ip=$(kubectl cluster-info | grep "Kubernetes master" | awk -F '[:/]' '{print $4}')
+ ssh -o StrictHostKeyChecking=no ${master_ip} -- "$@"
+}
+
function get_ovn_central_address {
#Reuse OVN_CENTRAL_ADDRESS if available (bypassable by --force flag)
if [[ "${1:-}" != "--force" ]] && [[ -n "${OVN_CENTRAL_ADDRESS:-}" ]]; then