File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
kubernetes/samples/scripts/create-weblogic-domain Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 9
9
# * The kubernetes namespace must already be created
10
10
#
11
11
12
- # Initialize
13
12
script=" ${BASH_SOURCE[0]} "
14
- scriptDir=" $( cd " $( dirname " ${script} " ) " && pwd ) "
15
- # source ${scriptDir}/../common/utility.sh
16
- # source ${scriptDir}/../common/validate.sh
17
13
18
14
#
19
15
# Function to exit and print an error message
@@ -23,15 +19,15 @@ function fail {
23
19
exit 1
24
20
}
25
21
26
- # try to execute kubectl to see whether kubectl is available
22
+ # Try to execute kubectl to see whether kubectl is available
27
23
function validateKubectlAvailable {
28
24
if ! [ -x " $( command -v kubectl) " ]; then
29
25
fail " kubectl is not installed"
30
26
fi
31
27
}
32
28
33
29
function usage {
34
- echo usage: ${script} -u userName -p password [-d domainUID] [-n name ] [-h]
30
+ echo usage: ${script} -u username -p password [-d domainUID] [-n namespace ] [-h]
35
31
echo " -u username, must be specified."
36
32
echo " -p password, must be specified."
37
33
echo " -n namespace, optional."
You can’t perform that action at this time.
0 commit comments