Skip to content

Commit 46f104a

Browse files
committed
indent
1 parent 555aed8 commit 46f104a

28 files changed

+580
-578
lines changed

Docker/abstract-docker-compose.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ export DOCKER_SCAN_SUGGEST=false
44
export COMPOSE_IGNORE_ORPHANS=true
55

66
case "${1}" in
7-
1) action="up --detach" reverse="" ;;
8-
0) action="down" reverse="reverse |" ;;
9-
*) echo "Please specify either 1 or 0." >&2 && exit 2 ;;
7+
1) action="up --detach" reverse="" ;;
8+
0) action="down" reverse="reverse |" ;;
9+
*) echo "Please specify either 1 or 0." >&2 && exit 2 ;;
1010
esac
1111

1212
shift 1

Kubernetes/debug-linkerd-outbound.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
k logs -n xxx yyy linkerd-proxy | grep -e unmeshed -e "timed out" -e WARN \
22
| grep -Eo "outbound:proxy{addr=.+:.+}" | sed -E 's/:rescue{client.addr=.+:.+}//' \
3-
| sort -u | tee /dev/tty | grep -Eo "=.+:" | tr -d '=:' | xargs -I {} zsh -c "kubectl get po -A -o wide | grep {}"
3+
| sort -u | tee /dev/tty | grep -Eo "=.+:" | tr -d '=:' \
4+
| xargs -I {} zsh -c "kubectl get po -A -o wide | grep {}"

Kubernetes/del-non-running-pods.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
k get po -A | grep -v Running | grep -v NAME | \
2-
awk '{print "kubectl delete po -n " $1 " " $2}' | zsh
2+
awk '{print "kubectl delete po -n " $1 " " $2}' | zsh

Kubernetes/finalize-k8s-obj.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ kubectl patch KIND -n NAMESPACE NAME -p '{"metadata":{"finalizers":[]}}' --type=
22

33
# Many:
44
kubectl get flinkdeployment,flinksessionjob -n ${k8s_namespace} | \
5-
grep flink | awk '{print $1}' | xargs -I {} kubectl patch \
6-
-n ${k8s_namespace} {} -p '{"metadata":{"finalizers":[]}}' --type='merge' || true
5+
grep flink | awk '{print $1}' | xargs -I {} kubectl patch \
6+
-n ${k8s_namespace} {} -p '{"metadata":{"finalizers":[]}}' --type='merge' || true

Kubernetes/rm-k8s-from-tfstate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
terraform state list | grep -e kubernetes_ -e helm_ | \
2-
awk '{printf "terraform state rm '\''%s'\''\n", $1}' | bash
2+
awk '{printf "terraform state rm '\''%s'\''\n", $1}' | bash

Kubernetes/sealed-secret-gen.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,28 @@ shift $((OPTIND-1))
3030
[ "${1:-}" = "--" ] && shift
3131
3232
if [ -n "$1" ]; then
33-
echo "Unknown argument: $1" >&2
34-
exit 2
33+
echo "Unknown argument: $1" >&2
34+
exit 2
3535
fi
3636
3737
if [ -z "$input_file" ]; then
38-
echo "Required argument is missing: -i <file containing a Kubernetes Secret>." >&2
39-
exit 2
38+
echo "Required argument is missing: -i <file containing a Kubernetes Secret>." >&2
39+
exit 2
4040
fi
4141
4242
if [ ! -f "$input_file" ]; then
43-
echo "File not found: $input_file." >&2
44-
exit 1
43+
echo "File not found: $input_file." >&2
44+
exit 1
4545
fi
4646
4747
input=$(yq 'del(.metadata.namespace)' "$input_file" | sed '/ null$/d')
4848
echo "$input" | $SEAL_CMD > $TMP_FILE
4949
name=$(yq '.metadata.name' "$input_file")
5050
5151
if [ -n "$password" ]; then
52-
echo -n "$password" | kubectl create secret generic "$name" \
53-
--dry-run=client --from-file=password=/dev/stdin -o yaml | \
54-
$SEAL_CMD --merge-into $TMP_FILE
52+
echo -n "$password" | kubectl create secret generic "$name" \
53+
--dry-run=client --from-file=password=/dev/stdin -o yaml | \
54+
$SEAL_CMD --merge-into $TMP_FILE
5555
fi
5656
5757
result=$(sed '/ null$/d' $TMP_FILE)

Other/Other/config.fish

+12-12
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,32 @@ function backup --argument filename
3434
end
3535

3636
function coln
37-
while read -l input
38-
echo $input | awk '{print $'$argv[1]'}'
39-
end
37+
while read -l input
38+
echo $input | awk '{print $'$argv[1]'}'
39+
end
4040
end
4141

4242
function rown --argument index
43-
sed -n "$index p"
43+
sed -n "$index p"
4444
end
4545

4646
function skip --argument n
47-
tail +(math 1 + $n)
47+
tail +(math 1 + $n)
4848
end
4949

5050
function awsp --argument profile
51-
if test -z $profile
52-
echo $AWS_PROFILE
53-
else
54-
set -xg AWS_PROFILE $profile
55-
return 0
56-
end
51+
if test -z $profile
52+
echo $AWS_PROFILE
53+
else
54+
set -xg AWS_PROFILE $profile
55+
return 0
56+
end
5757
end
5858

5959
alias ls='eza -a --color=always --group-directories-first'
6060
alias ll='eza -al --color=always --group-directories-first'
6161
alias lt='eza -aT --color=always --group-directories-first'
6262

6363
if test -e ~/.config/fish/work.fish
64-
source ~/.config/fish/work.fish
64+
source ~/.config/fish/work.fish
6565
end

0 commit comments

Comments
 (0)