feat(bot): ✨ Add "Delete My Activity Data" button to p.me.

This commit is contained in:
Nyeki.py
2024-11-02 23:39:18 -03:00
parent c3c44a57a6
commit ddd439d6d7
7 changed files with 135 additions and 228 deletions
+34 -13
View File
@@ -1,17 +1,38 @@
apiVersion: batch/v1
kind: CronJob
apiVersion: apps/v1
kind: Deployment
metadata:
name: tasks
spec:
schedule: "* * * * *"
jobTemplate:
replicas: 1
selector:
matchLabels:
app: tasks
template:
metadata:
labels:
app: tasks
spec:
template:
spec:
containers:
- name: tasks
image: git.nyeki.dev/payphone/payphone-tasks:latest
command: ["uv", "run", "--no-dev", "tasks.py", "flush"]
restartPolicy: OnFailure
imagePullSecrets:
- name: regcred
containers:
- name: flush
image: git.nyeki.dev/payphone/payphone-tasks:latest
command: ["uv", "run", "--no-dev", "tasks.py", "flush"]
resources:
requests:
memory: "250Mib"
cpu: "1"
limits:
memory: "1Gi"
cpu: "1"
- name: delete-accounts
image: git.nyeki.dev/payphone/payphone-tasks:latest
command: ["uv", "run", "--no-dev", "tasks.py", "delete-accounts"]
resources:
requests:
memory: "250Mib"
cpu: "1"
limits:
memory: "1Gi"
cpu: "1"
restartPolicy: OnFailure
imagePullSecrets:
- name: regcred