From c6e19f86332a559b5165af630566293371412afa Mon Sep 17 00:00:00 2001 From: Petr Nyc Date: Tue, 2 Sep 2025 10:06:29 +0200 Subject: [PATCH] 2.9 --- .config/mc/ini | 7 +++++-- .zshenv | 34 ++++++++++++++++++++++++++++++++++ bin/ul11u4_build.sh | 2 +- bin/ul11u4_gate_open.sh | 2 +- 4 files changed, 41 insertions(+), 4 deletions(-) diff --git a/.config/mc/ini b/.config/mc/ini index 7a49c99..6adfd06 100644 --- a/.config/mc/ini +++ b/.config/mc/ini @@ -85,10 +85,11 @@ editor_stop_format_chars=-+*\\,.;:&> mcview_eof= skin=solarized-dark-256color shell_directory_timeout=900 +filepos_max_saved_entries=1024 [Layout] output_lines=0 -left_panel_size=67 +left_panel_size=68 top_panel_size=0 message_visible=true keybar_visible=true @@ -118,6 +119,8 @@ color_terminals= alacritty= xterm= rxvt-256color= +screen-256color= +xterm-24bit= [Panels] show_mini_info=true @@ -143,7 +146,7 @@ select_flags=6 simple_swap=false [Panelize] -Find *.orig after patching=find . -name \\*.orig -print Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm /011 \\) -o \\( -perm -02000 -a -perm /01 \\) \\) -print +Find *.orig after patching=find . -name \\*.orig -print Find rejects after patching=find . -name \\*.rej -print Modified git files=git ls-files --modified diff --git a/.zshenv b/.zshenv index e16af7e..e4152f1 100644 --- a/.zshenv +++ b/.zshenv @@ -103,4 +103,38 @@ if [ -f "/Users/jetpac/.local/bin/k9s" ]; then fi +# lh nodes function for kubectl +if [[ -n ${commands[kubectl]} ]]; then + lh_nodes() { + local ns="${1:-longhorn-system}" + kubectl -n "$ns" get nodes.longhorn.io -o yaml | \ + yq eval ' + .items[] | + { + "node": .metadata.name, + "allowScheduling": .spec.allowScheduling, + "disks": ( + [ (.spec.disks // {}) | to_entries | .[] | + { + "diskName": .key, + "path": .value.path, + "allowScheduling": .value.allowScheduling, + "evictionRequested": .value.evictionRequested, + "storageReservedGiB": ((.value.storageReserved // 0) / 1073741824) + } + ] + ), + "diskStatus": ( + [ (.status.diskStatus // {}) | to_entries | .[] | + { + "diskName": .key, + "storageAvailableGiB": ((.value.storageAvailable // 0) / 1073741824), + "storageMaximumGiB": ((.value.storageMaximum // 0) / 1073741824), + "storageScheduledGiB":((.value.storageScheduled // 0) / 1073741824) + } + ] + ) + }' + } +fi diff --git a/bin/ul11u4_build.sh b/bin/ul11u4_build.sh index c0ff052..a362679 100755 --- a/bin/ul11u4_build.sh +++ b/bin/ul11u4_build.sh @@ -12,7 +12,7 @@ AWK=/usr/bin/awk CURL=/usr/bin/curl source "${BINDIR}/lib/logging.sh" -TARGET="${1-11.4.83.0.1.195.1}" +TARGET="${1-11.4.85.0.1.201.1}" hg_branch="s11u4_sust_084" log::info "TARGET:${TARGET}" diff --git a/bin/ul11u4_gate_open.sh b/bin/ul11u4_gate_open.sh index cae46c7..645e718 100755 --- a/bin/ul11u4_gate_open.sh +++ b/bin/ul11u4_gate_open.sh @@ -13,7 +13,7 @@ CURL=/usr/bin/curl source "${BINDIR}/lib/logging.sh" -TARGET="${1-11.4.84.0.1.201.1}" +TARGET="${1-11.4.85.0.1.201.1}" log::info "TARGET:${TARGET}"