get-all-apps, list the apps that are installed

This commit is contained in:
Lockszmith 2023-11-15 19:34:37 -05:00
parent eb821d0bdb
commit 3c31041ca9
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,14 @@
#! /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 -E 's/[[:space:]]([0-9]*|About)[a-z0-9 ]{5,12}ago[[:space:]]//' \
| awk '{ print $4 }' \
| sed 's/^ix-//' | sort -u