Skip to content

Commit 9c2f6d2

Browse files
committed
chore(controller): add clearsocial cronjob
1 parent 4a1b22a commit 9c2f6d2

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

charts/controller/templates/controller-cronjob-daily.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ spec:
3434
- $(DRYCC_REDIS_ADDRS)
3535
{{- include "controller.envs" . | indent 12 }}
3636
containers:
37+
- image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/controller:{{.Values.imageTag}}
38+
imagePullPolicy: {{.Values.pull_policy}}
39+
name: drycc-controller-clearsocial
40+
args:
41+
- /bin/bash
42+
- -c
43+
- python -u /workspace/manage.py clearsocial
44+
{{- include "controller.envs" . | indent 12 }}
3745
- image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/controller:{{.Values.imageTag}}
3846
imagePullPolicy: {{.Values.imagePullPolicy}}
3947
name: drycc-controller-load-db-state-to-k8s
@@ -66,4 +74,3 @@ spec:
6674
- -c
6775
- python -u /workspace/manage.py measure_volumes
6876
{{- include "controller.envs" . | indent 12 }}
69-

rootfs/api/migrations/0001_initial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 3.2.12 on 2022-03-11 06:36
1+
# Generated by Django 3.2.14 on 2022-08-10 02:21
22

33
import api.models.app
44
import api.models.certificate

rootfs/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
# fail hard and fast even on pipelines
7-
set -e
7+
set -eo pipefail
88

99
# set debug based on envvar
1010
[[ $DRYCC_DEBUG == "true" ]] && set -x

rootfs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ morph==0.1.4
1313
ndg-httpsclient==0.5.1
1414
packaging==21.0
1515
pyasn1==0.4.8
16-
psycopg2-binary==2.9.1
16+
psycopg2-binary==2.9.3
1717
pyOpenSSL==20.0.1
1818
pytz==2021.1
1919
requests==2.26.0

0 commit comments

Comments
 (0)