You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
537 B
Cheetah
27 lines
537 B
Cheetah
2 years ago
|
{{ if .hellotech -}}
|
||
3 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
3 years ago
|
k8s_last_config () (
|
||
|
dasel --read yaml --write json \
|
||
|
| jq --raw-output '.metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"]' \
|
||
|
| dasel --read json --write yaml \
|
||
|
| bat --language yaml
|
||
|
)
|
||
|
|
||
3 years ago
|
_add_path () {
|
||
|
if [ ! -d "$1" ]; then
|
||
|
return
|
||
|
fi
|
||
3 years ago
|
case "${PATH}" in
|
||
|
*"$1"*) return ;;
|
||
|
*) ;;
|
||
|
esac
|
||
3 years ago
|
PATH="${PATH}:$1"
|
||
|
}
|
||
|
|
||
|
_add_path "/usr/local/opt/mysql-client/bin"
|
||
|
_add_path "${HOME}/google-cloud-sdk/bin"
|
||
|
|
||
|
unset _add_path
|
||
2 years ago
|
{{- end }}
|