Skip to content

Commit c28ec1e

Browse files
authored
Merge pull request sclorg#64 from luciddreamz/master
Updates template display name, tags, description, message, and grouping
2 parents 380f347 + 6b3770e commit c28ec1e

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

openshift/templates/django-postgresql-persistent.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
"metadata": {
55
"name": "django-psql-persistent",
66
"annotations": {
7-
"description": "An example Django application with a PostgreSQL database",
8-
"tags": "quickstart,python,django,postgresql",
7+
"openshift.io/display-name": "Django + PostgreSQL (Persistent)",
8+
"description": "An example Django application with a PostgreSQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.",
9+
"tags": "quickstart,python,django",
910
"iconClass": "icon-python"
1011
}
1112
},
13+
"message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.",
1214
"labels": {
1315
"template": "django-psql-persistent"
1416
},
@@ -20,7 +22,7 @@
2022
"name": "${NAME}",
2123
"annotations": {
2224
"description": "Exposes and load balances the application pods",
23-
"service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"namespace\": \"\", \"kind\": \"Service\"}]"
25+
"service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
2426
}
2527
},
2628
"spec": {

openshift/templates/django-postgresql.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
"metadata": {
55
"name": "django-psql-example",
66
"annotations": {
7-
"description": "An example Django application with a PostgreSQL database",
8-
"tags": "quickstart,python,django,postgresql",
7+
"openshift.io/display-name": "Django + PostgreSQL (Ephemeral)",
8+
"description": "An example Django application with a PostgreSQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing.",
9+
"tags": "quickstart,python,django",
910
"iconClass": "icon-python"
1011
}
1112
},
13+
"message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.",
1214
"labels": {
1315
"template": "django-psql-example"
1416
},
@@ -20,7 +22,7 @@
2022
"name": "${NAME}",
2123
"annotations": {
2224
"description": "Exposes and load balances the application pods",
23-
"service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"namespace\": \"\", \"kind\": \"Service\"}]"
25+
"service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
2426
}
2527
},
2628
"spec": {

openshift/templates/django.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
"metadata": {
55
"name": "django-example",
66
"annotations": {
7-
"description": "An example Django application with no database",
7+
"openshift.io/display-name": "Django",
8+
"description": "An example Django application with no database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.",
89
"tags": "quickstart,python,django",
910
"iconClass": "icon-python"
1011
}
1112
},
1213
"labels": {
1314
"template": "django-example"
1415
},
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.",
1517
"objects": [
1618
{
1719
"kind": "Service",

0 commit comments

Comments
 (0)