2.9
This commit is contained in:
@@ -85,10 +85,11 @@ editor_stop_format_chars=-+*\\,.;:&>
|
|||||||
mcview_eof=
|
mcview_eof=
|
||||||
skin=solarized-dark-256color
|
skin=solarized-dark-256color
|
||||||
shell_directory_timeout=900
|
shell_directory_timeout=900
|
||||||
|
filepos_max_saved_entries=1024
|
||||||
|
|
||||||
[Layout]
|
[Layout]
|
||||||
output_lines=0
|
output_lines=0
|
||||||
left_panel_size=67
|
left_panel_size=68
|
||||||
top_panel_size=0
|
top_panel_size=0
|
||||||
message_visible=true
|
message_visible=true
|
||||||
keybar_visible=true
|
keybar_visible=true
|
||||||
@@ -118,6 +119,8 @@ color_terminals=
|
|||||||
alacritty=
|
alacritty=
|
||||||
xterm=
|
xterm=
|
||||||
rxvt-256color=
|
rxvt-256color=
|
||||||
|
screen-256color=
|
||||||
|
xterm-24bit=
|
||||||
|
|
||||||
[Panels]
|
[Panels]
|
||||||
show_mini_info=true
|
show_mini_info=true
|
||||||
@@ -143,7 +146,7 @@ select_flags=6
|
|||||||
simple_swap=false
|
simple_swap=false
|
||||||
|
|
||||||
[Panelize]
|
[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 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
|
Find rejects after patching=find . -name \\*.rej -print
|
||||||
Modified git files=git ls-files --modified
|
Modified git files=git ls-files --modified
|
||||||
|
|||||||
34
.zshenv
34
.zshenv
@@ -103,4 +103,38 @@ if [ -f "/Users/jetpac/.local/bin/k9s" ]; then
|
|||||||
fi
|
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
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ AWK=/usr/bin/awk
|
|||||||
CURL=/usr/bin/curl
|
CURL=/usr/bin/curl
|
||||||
|
|
||||||
source "${BINDIR}/lib/logging.sh"
|
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"
|
hg_branch="s11u4_sust_084"
|
||||||
log::info "TARGET:${TARGET}"
|
log::info "TARGET:${TARGET}"
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ CURL=/usr/bin/curl
|
|||||||
|
|
||||||
source "${BINDIR}/lib/logging.sh"
|
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}"
|
log::info "TARGET:${TARGET}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user