This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
creylopez
/
django-ex
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
Merge pull request
#75
from coreydaley/update_templates_to_use_secrets
updating to use secrets
pull/76/head
Ben Parees
9 years ago
committed by
GitHub
parent
6ddac81c67
02b0ec0429
commit
5f5f5135e5
3 changed files
with
35 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-5
openshift/templates/django-postgresql-persistent.json
+8
-2
openshift/templates/django-postgresql.json
+16
-1
openshift/templates/django.json
+ 11
- 5
openshift/templates/django-postgresql-persistent.json
View File
@ -22,8 +22,9 @@
"name"
:
"${NAME}"
}
,
"stringData"
:
{
"databaseUser"
:
"${DATABASE_USER}"
,
"databasePassword"
:
"${DATABASE_PASSWORD}"
"database-user"
:
"${DATABASE_USER}"
,
"database-password"
:
"${DATABASE_PASSWORD}"
,
"django-secret-key"
:
"${DJANGO_SECRET_KEY}"
}
}
,
{
@ -218,7 +219,7 @@
"valueFrom"
:
{
"secretKeyRef"
:
{
"name"
:
"${NAME}"
,
"key"
:
"database
U
ser"
"key"
:
"database
-u
ser"
}
}
}
,
@ -227,7 +228,7 @@
"valueFrom"
:
{
"secretKeyRef"
:
{
"name"
:
"${NAME}"
,
"key"
:
"database
P
assword"
"key"
:
"database
-p
assword"
}
}
}
,
@ -237,7 +238,12 @@
}
,
{
"name"
:
"DJANGO_SECRET_KEY"
,
"value"
:
"${DJANGO_SECRET_KEY}"
"valueFrom"
:
{
"secretKeyRef"
:
{
"name"
:
"${NAME}"
,
"key"
:
"django-secret-key"
}
}
}
]
,
"resources"
:
{
+ 8
- 2
openshift/templates/django-postgresql.json
View File
@ -23,7 +23,8 @@
}
,
"stringData"
:
{
"database-user"
:
"${DATABASE_USER}"
,
"database-password"
:
"${DATABASE_PASSWORD}"
"database-password"
:
"${DATABASE_PASSWORD}"
,
"django-secret-key"
:
"${DJANGO_SECRET_KEY}"
}
}
,
{
@ -237,7 +238,12 @@
}
,
{
"name"
:
"DJANGO_SECRET_KEY"
,
"value"
:
"${DJANGO_SECRET_KEY}"
"valueFrom"
:
{
"secretKeyRef"
:
{
"name"
:
"${NAME}"
,
"key"
:
"django-secret-key"
}
}
}
]
,
"resources"
:
{
+ 16
- 1
openshift/templates/django.json
View File
@ -15,6 +15,16 @@
}
,
"message"
:
"The following service(s) have been created in your project: ${NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md."
,
"objects"
:
[
{
"kind"
:
"Secret"
,
"apiVersion"
:
"v1"
,
"metadata"
:
{
"name"
:
"${NAME}"
}
,
"stringData"
:
{
"django-secret-key"
:
"${DJANGO_SECRET_KEY}"
}
}
,
{
"kind"
:
"Service"
,
"apiVersion"
:
"v1"
,
@ -195,7 +205,12 @@
}
,
{
"name"
:
"DJANGO_SECRET_KEY"
,
"value"
:
"${DJANGO_SECRET_KEY}"
"valueFrom"
:
{
"secretKeyRef"
:
{
"name"
:
"${NAME}"
,
"key"
:
"django-secret-key"
}
}
}
]
,
"resources"
:
{
Write
Preview
Loading…
Cancel
Save