Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kubectl-node-shell for openSUSE:Factory checked in at 2024-01-22 20:32:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kubectl-node-shell (Old) and /work/SRC/openSUSE:Factory/.kubectl-node-shell.new.16006 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kubectl-node-shell" Mon Jan 22 20:32:59 2024 rev:5 rq:1140345 version:1.10.1 Changes: -------- --- /work/SRC/openSUSE:Factory/kubectl-node-shell/kubectl-node-shell.changes 2024-01-07 21:42:23.984596895 +0100 +++ /work/SRC/openSUSE:Factory/.kubectl-node-shell.new.16006/kubectl-node-shell.changes 2024-01-22 20:33:21.239310736 +0100 @@ -1,0 +2,21 @@ +Mon Jan 22 05:30:25 UTC 2024 - opensuse_buildserv...@ojkastl.de + +- Update to version 1.10.1: + * fix grep for check resource quota + +------------------------------------------------------------------- +Sat Jan 20 17:36:49 UTC 2024 - opensuse_buildserv...@ojkastl.de + +- Update to version 1.10.0: + * bump version v1.10.0 + * Fix Windows support for 2019 (#47) + * Automatically set or not set resource quota through the cluster + (#59) + +------------------------------------------------------------------- +Sat Jan 20 17:34:59 UTC 2024 - opensuse_buildserv...@ojkastl.de + +- Update to version 1.9.0: + * feat(node-shell): optional pod running timeout (#57) + +------------------------------------------------------------------- Old: ---- kubectl-node-shell-1.8.1.obscpio New: ---- kubectl-node-shell-1.10.1.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kubectl-node-shell.spec ++++++ --- /var/tmp/diff_new_pack.8r041O/_old 2024-01-22 20:33:21.855333234 +0100 +++ /var/tmp/diff_new_pack.8r041O/_new 2024-01-22 20:33:21.855333234 +0100 @@ -22,7 +22,7 @@ %define executable_name kubectl-node_shell Name: kubectl-node-shell -Version: 1.8.1 +Version: 1.10.1 Release: 0 Summary: Exec into node via kubectl License: Apache-2.0 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.8r041O/_old 2024-01-22 20:33:21.891334549 +0100 +++ /var/tmp/diff_new_pack.8r041O/_new 2024-01-22 20:33:21.895334695 +0100 @@ -3,7 +3,7 @@ <param name="url">https://github.com/kvaps/kubectl-node-shell</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v1.8.1</param> + <param name="revision">v1.10.1</param> <param name="versionformat">@PARENT_TAG@</param> <param name="changesgenerate">enable</param> <param name="versionrewrite-pattern">v(.*)</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.8r041O/_old 2024-01-22 20:33:21.915335425 +0100 +++ /var/tmp/diff_new_pack.8r041O/_new 2024-01-22 20:33:21.919335572 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/kvaps/kubectl-node-shell</param> - <param name="changesrevision">b4c24ea3b2d55988002f727f9d0db6c2d868628a</param></service></servicedata> + <param name="changesrevision">76cc9c4c4e385201bd9ebcb9b4478e6bba21d264</param></service></servicedata> (No newline at EOF) ++++++ kubectl-node-shell-1.8.1.obscpio -> kubectl-node-shell-1.10.1.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kubectl-node-shell-1.8.1/kubectl-node_shell new/kubectl-node-shell-1.10.1/kubectl-node_shell --- old/kubectl-node-shell-1.8.1/kubectl-node_shell 2023-12-26 10:24:09.000000000 +0100 +++ new/kubectl-node-shell-1.10.1/kubectl-node_shell 2024-01-22 01:37:22.000000000 +0100 @@ -2,7 +2,7 @@ set -e kubectl=kubectl -version=1.8.1 +version=1.10.0 generator="" node="" nodefaultctx=0 @@ -13,6 +13,7 @@ volume_mounts="[]" x_mode=0 labels="${KUBECTL_NODE_SHELL_LABELS}" +pod_running_timeout="${KUBECTL_NODE_SHELL_POD_RUNNING_TIMEOUT:-1m}" if [ -t 0 ]; then tty=true @@ -96,12 +97,10 @@ # Set pod configuration per operating system if [ "$os" = "windows" ]; then - image="${KUBECTL_NODE_SHELL_IMAGE_WINDOWS:-mcr.microsoft.com/powershell}" + image="${KUBECTL_NODE_SHELL_IMAGE_WINDOWS:-mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0}" name="pwsh" pod="${name}-$(env LC_ALL=C tr -dc a-z0-9 </dev/urandom | head -c 6)" - # pwsh has to be launched via cmd.exe because of how containerd 1.6 handles the mount of the container filesystem - # see https://kubernetes.io/docs/tasks/configure-pod-container/create-hostprocess-pod/#volume-mounts - cmd_start='"cmd.exe", "/c", "%CONTAINER_SANDBOX_MOUNT_POINT%\\Program Files\\PowerShell\\latest\\pwsh.exe", "-nol", "-wd", "C:\\"' + cmd_start='"cmd.exe", "/c", "powershell.exe", "-nol"' cmd_arg_prefix=', "-Command"' cmd_default='' security_context='{"privileged":true,"windowsOptions":{"hostProcess":true,"runAsUserName":"NT AUTHORITY\\SYSTEM"}}' @@ -139,6 +138,13 @@ fi fi +# test if resource specification is required +resources_json='"resources": { + "limits": { "cpu": "'${container_cpu}'", "memory": "'${container_memory}'" }, + "requests": { "cpu": "'${container_cpu}'", "memory": "'${container_memory}'" } + }' +$kubectl run --image "$image" "$pod" --dry-run=server 2>&1 | grep -q 'failed quota' || resources_json='"resources": {}' + overrides="$( cat <<EOT { @@ -155,10 +161,7 @@ "stdinOnce": true, "tty": $tty, "command": $cmd, - "resources": { - "limits": { "cpu": "${container_cpu}", "memory": "${container_memory}" }, - "requests": { "cpu": "${container_cpu}", "memory": "${container_memory}" } - }, + $resources_json, "volumeMounts": $volume_mounts } ], @@ -171,7 +174,6 @@ } EOT )" - # Support Kubectl <1.18 m=$(kubectl version --client -o yaml | awk -F'[ :"]+' '$2 == "minor" {print $3+0}') if [ "$m" -lt 18 ]; then @@ -181,4 +183,4 @@ trap "EC=\$?; $kubectl delete pod --wait=false $pod >&2 || true; exit \$EC" EXIT INT TERM echo "spawning \"$pod\" on \"$node\"" >&2 -$kubectl run --image "$image" --restart=Never --overrides="$overrides" --labels="$labels" $([ "$tty" = true ] && echo -t) -i "$pod" $generator +$kubectl run --image "$image" --restart=Never --overrides="$overrides" --labels="$labels" --pod-running-timeout="$pod_running_timeout" $([ "$tty" = true ] && echo -t) -i "$pod" $generator ++++++ kubectl-node-shell.obsinfo ++++++ --- /var/tmp/diff_new_pack.8r041O/_old 2024-01-22 20:33:22.031339662 +0100 +++ /var/tmp/diff_new_pack.8r041O/_new 2024-01-22 20:33:22.035339809 +0100 @@ -1,5 +1,5 @@ name: kubectl-node-shell -version: 1.8.1 -mtime: 1703582649 -commit: b4c24ea3b2d55988002f727f9d0db6c2d868628a +version: 1.10.1 +mtime: 1705883842 +commit: 76cc9c4c4e385201bd9ebcb9b4478e6bba21d264