containerized-data-importer/cluster-up/ssh.sh
Maya Rashish dd0b5f60ee
Update kubevirtci. (#1292)
* Update kubevirtci.

Changes default KUBEVIRT_PROVIDER to k8s-1.18 that works, the previous
CDI-specific change was wrong and got overridden by another
'make generate'.

Removes ocp and okd kubevirtci providers.

Signed-off-by: Maya Rashish <mrashish@redhat.com>

* GC okd-4.1 and okd-4.3 cluster-sync logic.

These lanes were removed from kubevirtci.

Signed-off-by: Maya Rashish <mrashish@redhat.com>
2020-07-13 22:37:40 +02:00

31 lines
591 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -z "$KUBEVIRTCI_PATH" ]; then
KUBEVIRTCI_PATH="$(
cd "$(dirname "$BASH_SOURCE[0]")/"
echo "$(pwd)/"
)"
fi
test -t 1 && USE_TTY="-it"
source ${KUBEVIRTCI_PATH}/hack/common.sh
source ${KUBEVIRTCI_CLUSTER_PATH}/$KUBEVIRT_PROVIDER/provider.sh
source ${KUBEVIRTCI_PATH}/hack/config.sh
node=$1
if [ -z "$node" ]; then
echo "node name required as argument"
echo "k8s example: ./ssh node01"
exit 1
fi
if [[ $KUBEVIRT_PROVIDER =~ kind.* ]]; then
_ssh_into_node "$@"
else
${_cli} --prefix $provider_prefix ssh "$@"
fi