Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Change command for capturing CNPG applications
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavybullets8 committed Mar 13, 2024
1 parent 090ff48 commit 4778440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/backup_restore/database/cnpg_dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ display_app_sizes() {

db_dump_get_app_status() {
# Get application names from deployments
mapfile -t cnpg_apps < <(k3s kubectl get deployments --all-namespaces | grep -E '^(ix-.*\s).*-cnpg-main-' | awk '{gsub(/^ix-/, "", $1); print $1}')
mapfile -t cnpg_apps < <(k3s kubectl get cluster -A | grep -E '^(ix-.*\s).*-cnpg-main-' | awk '{gsub(/^ix-/, "", $1); print $1}' | sort -u)

# Store the output of the `cli` command into a variable
chart_release_output=$(cli -m csv -c 'app chart_release query name,status' | tr -d " \t\r" | tail -n +2)
Expand Down

0 comments on commit 4778440

Please sign in to comment.