Silence output

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2022-03-18 07:37:01 +00:00
parent 28b8a20ff9
commit 475b4d3b5f
2 changed files with 6 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ fi
NAMES="$(kubectl api-resources --namespaced --verbs list -o name | tr '\n' ,)"
if [[ "$ALL_NAMESPACES" == "true" ]]; then
kubectl get "${NAMES::${#NAMES}-1}" --show-kind --ignore-not-found ${LABEL} -A
kubectl get "${NAMES::${#NAMES}-1}" --show-kind --ignore-not-found ${LABEL} -A 2>/dev/null
else
kubectl get "${NAMES::${#NAMES}-1}" --show-kind --ignore-not-found ${LABEL} -n ${NAMESPACE}
kubectl get "${NAMES::${#NAMES}-1}" --show-kind --ignore-not-found ${LABEL} -n ${NAMESPACE} 2>/dev/null
fi