djaploy 1.5.2__tar.gz → 1.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {djaploy-1.5.2 → djaploy-1.5.3}/PKG-INFO +1 -1
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/Chart.yaml +1 -1
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/configmap.yaml +27 -0
- djaploy-1.5.3/djaploy/version.py +1 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy.egg-info/PKG-INFO +1 -1
- {djaploy-1.5.2 → djaploy-1.5.3}/pyproject.toml +1 -1
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_k3s.py +1 -1
- djaploy-1.5.2/djaploy/version.py +0 -1
- {djaploy-1.5.2 → djaploy-1.5.3}/LICENSE +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/README.md +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/app.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/borg/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/borg/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/borg/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/janitor/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/janitor/apps.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/janitor/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/janitor/infra/commands/createjanitoruser.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/janitor/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/nginx/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/nginx/apps.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/nginx/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/nginx/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/rclone/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/rclone/apps.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/rclone/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/rclone/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/sync_certs/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/sync_certs/apps.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/sync_certs/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/sync_certs/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/systemd/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/systemd/apps.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/systemd/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/systemd/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/tailscale/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/tailscale/apps.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/tailscale/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/tailscale/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/versioning/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/versioning/apps.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/versioning/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/apps/versioning/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/artifact.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/bin/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/bin/django_pyinfra.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/bin/gunicornherder.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/builtin_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/certificates.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/changelog.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/_utils.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/activate.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/configure.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/deploy.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/restore.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/rollback.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/status.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/commands/sync_certs.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/config.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/deploy.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/discovery.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/bluegreen.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/_helpers.tpl +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/cronjobs.yaml +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/deployment.yaml +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/ingress.yaml +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/onepassword.yaml +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/pvc.yaml +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/service.yaml +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/templates/workers.yaml +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/charts/django-app/values.yaml +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/djaploy_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/k3s.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/templates.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/infra/utils.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/management/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/management/commands/__init__.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/management/commands/djaploy.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/management/commands/restore_backup.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/management/commands/sync_certs.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/management/commands/update_certs.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/management/commands/verify.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/management/utils.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/notifications.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/utils.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy/versioning.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy.egg-info/SOURCES.txt +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy.egg-info/dependency_links.txt +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy.egg-info/entry_points.txt +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy.egg-info/requires.txt +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/djaploy.egg-info/top_level.txt +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/setup.cfg +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_bluegreen.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_borg.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_config.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_deploy_scripts.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_discovery.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_gunicornherder.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_hooks.py +0 -0
- {djaploy-1.5.2 → djaploy-1.5.3}/tests/test_versioning.py +0 -0
|
@@ -57,10 +57,37 @@ data:
|
|
|
57
57
|
{{- if and (eq .Values.database.engine "sqlite") .Values.database.sqlite.snapshotBeforeMigrate }}
|
|
58
58
|
python /scripts/snapshot.py {{ .Values.database.sqlite.keepSnapshots }}
|
|
59
59
|
{{- end }}
|
|
60
|
+
{{- if .Values.django.settingsModule }}
|
|
61
|
+
python /scripts/rollout.py
|
|
62
|
+
{{- else }}
|
|
63
|
+
{{- /* no settings module: let manage.py pick its default, one process per command */}}
|
|
60
64
|
python {{ .Values.django.managePy }} migrate --noinput
|
|
61
65
|
{{- range .Values.migrations.extraCommands }}
|
|
62
66
|
python {{ $.Values.django.managePy }} {{ . }}
|
|
63
67
|
{{- end }}
|
|
68
|
+
{{- end }}
|
|
69
|
+
# migrate + extraCommands in one process: Django starts once (~1 s on the
|
|
70
|
+
# node) instead of once per command.
|
|
71
|
+
rollout.py: |
|
|
72
|
+
import os
|
|
73
|
+
import shlex
|
|
74
|
+
import sys
|
|
75
|
+
|
|
76
|
+
MANAGE_PY = {{ .Values.django.managePy | quote }}
|
|
77
|
+
EXTRA_COMMANDS = {{ toJson (.Values.migrations.extraCommands | default list) }}
|
|
78
|
+
|
|
79
|
+
# What `python manage.py` does: its folder goes first on the path.
|
|
80
|
+
sys.path.insert(0, os.path.dirname(os.path.abspath(MANAGE_PY)))
|
|
81
|
+
|
|
82
|
+
import django
|
|
83
|
+
from django.core.management import call_command
|
|
84
|
+
|
|
85
|
+
django.setup()
|
|
86
|
+
print("==> migrate", flush=True)
|
|
87
|
+
call_command("migrate", interactive=False, skip_checks=False) # system checks, as manage.py migrate
|
|
88
|
+
for command in EXTRA_COMMANDS:
|
|
89
|
+
print(f"==> {command}", flush=True)
|
|
90
|
+
call_command(*shlex.split(command))
|
|
64
91
|
snapshot.py: |
|
|
65
92
|
"""Consistent copy of the SQLite DB before migrating (the rollback point)."""
|
|
66
93
|
import glob, os, sqlite3, sys, time
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.5.3"
|
|
@@ -108,7 +108,7 @@ class ImageRefTests(unittest.TestCase):
|
|
|
108
108
|
|
|
109
109
|
class ChartTests(unittest.TestCase):
|
|
110
110
|
def test_bundled_chart_version(self):
|
|
111
|
-
self.assertEqual(k3s.chart_version(), "0.2.
|
|
111
|
+
self.assertEqual(k3s.chart_version(), "0.2.3")
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
class BuildModeTests(unittest.TestCase):
|
djaploy-1.5.2/djaploy/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.5.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|