Skip to content

Commit 46e23c8

Browse files
author
Tom Barnes
committed
delete script fix: specify all-namespaces in search
1 parent 057ed24 commit 46e23c8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

kubernetes/delete-domain.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ cat << EOF
3232
Perform a best-effort delete of the k8s artifacts for
3333
the given domain(s), and retry until either max-seconds is reached
3434
or all artifacts were deleted (default $default_maxwaitsecs seconds).
35+
3536
The domains can be specified as a comma-separated list of
3637
domain-uids (no spaces), or the keyword 'all'.
3738
3839
Specify '-t' to run the script in a test mode which will
39-
show the delete commands without actually performing them.
40+
show delete commands but not actually perform them.
4041
4142
This script exits with a zero status on success, and a
4243
non-zero status on failure.
@@ -68,13 +69,15 @@ function getDomain {
6869

6970
kubectl get $namespaced_types \
7071
-l "$label_selector" \
71-
-o=jsonpath='{range .items[*]}{.kind}{" "}{.metadata.name}{" -n "}{.metadata.namespace}{"\n"}{end}'
72+
-o=jsonpath='{range .items[*]}{.kind}{" "}{.metadata.name}{" -n "}{.metadata.namespace}{"\n"}{end}' \
73+
--all-namespaces=true
7274

7375
# get all non-namespaced types with -l $label_selector
7476

7577
kubectl get pv,crd,clusterroles,clusterrolebindings \
7678
-l "$label_selector" \
77-
-o=jsonpath='{range .items[*]}{.kind}{" "}{.metadata.name}{"\n"}{end}'
79+
-o=jsonpath='{range .items[*]}{.kind}{" "}{.metadata.name}{"\n"}{end}' \
80+
--all-namespaces=true
7881
}
7982

8083
#

src/integration-tests/kubernetes/weblogic-credentials-template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ data:
1616
# In this example, username is weblogic, password is welcome1
1717
username: d2VibG9naWM=
1818
password: d2VsY29tZTE=
19+

0 commit comments

Comments
 (0)