Skip to content

Commit a481d70

Browse files
Merge pull request #28 from clemenspeters/feature/cluster-create-argument
🔧 Allow input argument.
2 parents d379907 + c24e0f6 commit a481d70

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

jmeter_cluster_create.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ kubectl get namespaces | grep -v NAME | awk '{print $1}'
2323

2424
echo
2525

26-
echo "Enter the name of the new tenant unique name, this will be used to create the namespace"
27-
read tenant
26+
tenant="$1"
27+
if [ -z "$tenant" ]
28+
then
29+
echo "Enter the name of the new tenant unique name, this will be used to create the namespace"
30+
read tenant
31+
fi
32+
2833
echo
2934

3035
#Check If namespace exists

0 commit comments

Comments
 (0)