-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
scrungus
committed
Jul 4, 2024
1 parent
6619597
commit 0cc4d46
Showing
10 changed files
with
248 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SECRET_KEY: {{ .Values.settings.secretKey | default (randAlphaNum 64) }} | ||
DEBUG: {{ .Values.settings.debug }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "coral-credits.fullname" . }} | ||
labels: {{ include "coral-credits.labels" . | nindent 4 }} | ||
type: Opaque | ||
# Use data because of https://github.com/helm/helm/issues/10010 | ||
# Not doing so means that AWX-related keys are not removed on transition to the CRD | ||
data: | ||
01-django.yaml: | | ||
{{- tpl (.Files.Get "files/settings/01-django.yaml") . | b64enc | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
""" | ||
Application-specific settings. | ||
""" | ||
|
||
from pathlib import Path | ||
|
||
# Build paths inside the project like this: BASE_DIR / 'subdir'. | ||
BASE_DIR = Path(__file__).resolve().parent.parent | ||
|
||
# Database | ||
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases | ||
|
||
DATABASES = { | ||
"default": { | ||
"ENGINE": "django.db.backends.sqlite3", | ||
"NAME": "/data/db.sqlite3", | ||
} | ||
} | ||
|
||
# Application definition | ||
|
||
INSTALLED_APPS = [ | ||
"django.contrib.admin", | ||
"django.contrib.auth", | ||
"django.contrib.contenttypes", | ||
"django.contrib.sessions", | ||
"django.contrib.messages", | ||
"django.contrib.staticfiles", | ||
"django_extensions", | ||
"drf_spectacular", | ||
"rest_framework", | ||
"auditlog", | ||
"coral_credits.api", | ||
] | ||
|
||
AUDITLOG_INCLUDE_ALL_MODELS = True | ||
|
||
MIDDLEWARE = [ | ||
"django.middleware.security.SecurityMiddleware", | ||
"django.contrib.sessions.middleware.SessionMiddleware", | ||
"django.middleware.common.CommonMiddleware", | ||
"django.middleware.csrf.CsrfViewMiddleware", | ||
"django.contrib.auth.middleware.AuthenticationMiddleware", | ||
"django.contrib.messages.middleware.MessageMiddleware", | ||
"django.middleware.clickjacking.XFrameOptionsMiddleware", | ||
] | ||
|
||
REST_FRAMEWORK = { | ||
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema", | ||
} | ||
|
||
ROOT_URLCONF = "coral_credits.urls" | ||
|
||
SPECTACULAR_SETTINGS = { | ||
"TITLE": "Coral Credits API", | ||
"DESCRIPTION": 'Coral credits is a resource management system that helps build a \ | ||
"coral reef style" fixed capacity cloud, cooperatively sharing community \ | ||
resources through interfaces such as: Azimuth, OpenStack Blazar and Slurm.', | ||
"VERSION": "0.1.0", | ||
"SERVE_INCLUDE_SCHEMA": False, | ||
# OTHER SETTINGS | ||
} | ||
|
||
WSGI_APPLICATION = "coral_credits.wsgi.application" |
Oops, something went wrong.