Remove the now unused bgas command

This commit is contained in:
Gergely Polonkai 2025-03-18 20:31:25 +01:00
parent b47ede3300
commit 578d688537
No known key found for this signature in database
GPG Key ID: 38F402C8471DDE93

View File

@ -1,31 +0,0 @@
function bgas
set -l context (kubectl config current-context)
set -l cline
getopts $argv | while read -l key value
switch $key
case c
set context $value
case _
set cline $cline $value
end
end
set -l pod (
kubectl --context=$context --namespace=apps get pod -lapp=accounts-service,instance=app -o json |
jq -r '.items[].metadata.name' |
shuf |
head -1
)
if test -z "$pod"
echo "No pod found. Are you using the correct context?"
return 1
end
kubectl \
--context=$context \
--namespace=apps \
exec -ti $pod -- \
env SKIP_MIGRATION=yes ./docker-entrypoint.sh poetry run -- python3 -m assured_seal $cline
end