Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove older connectivity client #623

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions samples/connectivity_client_v100.yaml

This file was deleted.

15 changes: 12 additions & 3 deletions scripts/uninstall_connectivity_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@

#!/bin/bash

if [[ $# -ne 1 ]]; then
echo "Incorrect input parameters provided to script $0."
echo "Script Usage:"
echo "$0 <connectivityclient-version>"
echo "Example:- connectivityclient-version => v100 , v110"
exit 1
fi

SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
ROOTDIR="$(dirname "$SCRIPTDIR")"
CMD=""
connectivity_ver=$1

out=$(command -v oc)
if [ $? -eq 0 ]; then
Expand All @@ -31,7 +40,7 @@ if [ -z "$CMD" ]; then
exit 1
fi

$CMD delete -f ${ROOTDIR}/samples/connectivity_client_v100.yaml
$CMD delete ns dell-connectivity-client
$CMD apply -f $ROOTDIR/samples/connectivity_client_${connectivity_ver}.yaml
$CMD apply -f $ROOTDIR/samples/conn_secret_test.yaml

echo "Dell Connectivity Client uninstalled."
echo "Dell Connectivity Client ${connectivity_ver} uninstalled."
Loading