simplify just diff, add goatchat register commands

This commit is contained in:
Grant Hunter 2025-07-29 21:45:50 -06:00
parent 4535d872b1
commit 7d5a5fa56e

View File

@ -4,14 +4,21 @@ update:
deploy ARGS='--output simple -i':
bws run 'helmfile apply {{ARGS}}'
sdiff ARGS='':
bws run 'helmfile diff --output simple'
ddiff ARGS='':
diff ARGS='':
bws run 'helmfile diff --output dyff {{ARGS}}'
cleanuppods:
kubectl get pods --no-headers | grep -v Running | awk '{print $1}' | xargs kubectl delete pod
pgrestart:
kubectl patch postgrescluster/postgres --type merge --patch '{"spec":{"metadata":{"annotations":{"restarted":"'"$(date)"'"}}}}'
kubectl patch postgrescluster/postgres --type merge --patch '{"spec":{"metadata":{"annotations":{"restarted":"'"$(date)"'"}}}}'
goatchat-register:
bws run 'curl -v -H '\"'Authorization: SharedSecret $GOATCHAT_REGISTRATION_ADMIN_API_SHARE_SECRET'\"' \
-H "Content-Type: application/json" \
-d '\''{"max_usage": 0, "expiration_date": "2026-01-01"}'\'' \
https://goatchat.ca/gate/api/token'
goatchat-register-review:
bws run 'curl -v -H '\"'Authorization: SharedSecret $GOATCHAT_REGISTRATION_ADMIN_API_SHARE_SECRET'\"' \
-H "Content-Type: application/json" \
https://goatchat.ca/gate/api/token' | jq