@@ -29,8 +29,8 @@ cat << EOF
29
29
or all resources were deleted (default $default_maxwaitsecs seconds).
30
30
31
31
The domains can be specified as a comma-separated list of
32
- domain-uids (no spaces), or the keyword 'all' . The domains can be
33
- located in any kubernetes namespace.
32
+ domain-uids (no spaces). The domains can be located in any
33
+ kubernetes namespace.
34
34
35
35
Specify '-t' to run the script in a test mode which will
36
36
show kubernetes commands but not actually perform them.
73
73
#
74
74
function getDomainResources {
75
75
local domain_regex=' '
76
- if [ " $1 " = " all" ]; then
77
- LABEL_SELECTOR=" weblogic.domainUID"
78
- else
79
- LABEL_SELECTOR=" weblogic.domainUID in ($1 )"
80
- IFS=' ,' read -ra UIDS <<< " $1"
81
- for i in " ${! UIDS[@]} " ; do
82
- if [ $i -gt 0 ]; then
83
- domain_regex=" $domain_regex |"
84
- fi
85
- domain_regex=" $domain_regex ^Domain ${UIDS[$i]} "
86
- done
87
- fi
76
+ LABEL_SELECTOR=" weblogic.domainUID in ($1 )"
77
+ IFS=' ,' read -ra UIDS <<< " $1"
78
+ for i in " ${! UIDS[@]} " ; do
79
+ if [ $i -gt 0 ]; then
80
+ domain_regex=" $domain_regex |"
81
+ fi
82
+ domain_regex=" $domain_regex ^Domain ${UIDS[$i]} "
83
+ done
88
84
89
85
# clean the output file
90
86
if [ -e $2 ]; then
@@ -122,7 +118,6 @@ function getDomainResources {
122
118
#
123
119
# Usage:
124
120
# deleteDomains domainA,domainB,... maxwaitsecs
125
- # deleteDomains all maxwaitsecs
126
121
#
127
122
# Internal helper function
128
123
# This function first sets the serverStartPolicy of each Domain to NEVER
@@ -131,9 +126,7 @@ function getDomainResources {
131
126
# any remaining k8s resources for domain $1 (including any remaining pods)
132
127
# and retries these direct deletes up to $2 seconds.
133
128
#
134
- # If $1 has special value "all", it deletes all domains in all namespaces.
135
- #
136
- # If global $test_mode is true, it shows candidate actions but doesn't
129
+ # If global $test_mode is true, it shows candidate actions but doesn't
137
130
# actually perform them
138
131
#
139
132
function deleteDomains {
0 commit comments