Skip to content

Commit

Permalink
Merge pull request #32 from GeorgianaElena/django-yamlconf
Browse files Browse the repository at this point in the history
Add support for django-yamlconf
  • Loading branch information
GeorgianaElena authored Sep 3, 2024
2 parents b4ce3fd + 6cac2e4 commit d5ad1ce
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion comptest/comptest/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

from pathlib import Path

import django_yamlconf

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent

Expand All @@ -23,7 +25,7 @@
SECRET_KEY = "django-insecure-su6*zos$30s$6@7q6lm-)rf1@bxdq!qd566f!a^9wgqs*p)m3%"

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False

ALLOWED_HOSTS = []

Expand All @@ -38,6 +40,7 @@
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"django_yamlconf",
"allauth",
"allauth.account",
"allauth.socialaccount",
Expand Down Expand Up @@ -202,3 +205,5 @@
os.makedirs(output_dir, exist_ok=True)

UNNAMED_THINGY_EVALUATOR_OUTPUTS_TEMPDIR = output_dir

django_yamlconf.load()
6 changes: 6 additions & 0 deletions helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ spec:
- name: db
mountPath: /mnt
readOnly: false
- name: django-yamlconf
mountPath: /mnt/unnamed-thingity-thing/
subPath: comptest.yaml
volumes:
- name: db
persistentVolumeClaim:
claimName: db-pvc
- name: django-yamlconf
configMap:
name: {{ include "unnamed.fullname" . }}-django-yamlconf
2 changes: 2 additions & 0 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ nodeSelector: {}
tolerations: []

affinity: {}

yamlSettings: {}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ aiodocker
django
django-allauth[socialaccount]
django-reversion
django-yamlconf
markdown-it-py[plugins]

0 comments on commit d5ad1ce

Please sign in to comment.