Compare commits
2 Commits
927cf87bae
...
83978cc429
Author | SHA1 | Date | |
---|---|---|---|
83978cc429 | |||
1dfe84005b |
@ -51,8 +51,8 @@ fi
|
||||
|
||||
NAMES="$(kubectl api-resources --namespaced --verbs list -o name | tr '\n' ,)"
|
||||
|
||||
if [ $ALL_NAMESPACES ]; then
|
||||
kubectl get "${NAMES:0:-1}" --show-kind --ignore-not-found ${LABEL} -A
|
||||
if [[ "$ALL_NAMESPACES" == "true" ]]; then
|
||||
kubectl get "${NAMES::${#NAMES}-1}" --show-kind --ignore-not-found ${LABEL} -A
|
||||
else
|
||||
kubectl get "${NAMES:0:-1}" --show-kind --ignore-not-found ${LABEL} -n ${NAMESPACE}
|
||||
kubectl get "${NAMES::${#NAMES}-1}" --show-kind --ignore-not-found ${LABEL} -n ${NAMESPACE}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user