get-all-apps, list the apps that are installed
This commit is contained in:
parent
eb821d0bdb
commit
3c31041ca9
|
@ -1,6 +1,14 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
k3s crictl pods --namespace ix -s Ready \
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
USER_HOME=$HOME
|
||||||
|
[[ -n "${SUDO_USER}" ]] && USER_HOME="$(eval "echo ~${SUDO_USER}")"
|
||||||
|
. ${SHRC_D:-$SCRIPT_DIR}/01_util.functions
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
k3s kubectl pods --namespace ix -s Ready \
|
||||||
| sed 1d | grep -v svclb- \
|
| sed 1d | grep -v svclb- \
|
||||||
| sed -E 's/[[:space:]]([0-9]*|About)[a-z0-9 ]{5,12}ago[[:space:]]//' \
|
| sed -E 's/[[:space:]]([0-9]*|About)[a-z0-9 ]{5,12}ago[[:space:]]//' \
|
||||||
| awk '{ print $4 }' \
|
| awk '{ print $4 }' \
|
||||||
| sed 's/^ix-//' | sort -u
|
| sed 's/^ix-//' | sort -u
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue