Browse Source

Updates template display name, tags, description, message, and service grouping

pull/64/head
luciddreamz 9 years ago
parent
commit
6b3770e705
3 changed files with 13 additions and 7 deletions
  1. +5
    -3
      openshift/templates/django-postgresql-persistent.json
  2. +5
    -3
      openshift/templates/django-postgresql.json
  3. +3
    -1
      openshift/templates/django.json

+ 5
- 3
openshift/templates/django-postgresql-persistent.json View File

@ -4,11 +4,13 @@
"metadata": { "metadata": {
"name": "django-psql-persistent", "name": "django-psql-persistent",
"annotations": { "annotations": {
"description": "An example Django application with a PostgreSQL database",
"tags": "quickstart,python,django,postgresql",
"openshift.io/display-name": "Django + PostgreSQL (Persistent)",
"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.",
"tags": "quickstart,python,django",
"iconClass": "icon-python" "iconClass": "icon-python"
} }
}, },
"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.",
"labels": { "labels": {
"template": "django-psql-persistent" "template": "django-psql-persistent"
}, },
@ -20,7 +22,7 @@
"name": "${NAME}", "name": "${NAME}",
"annotations": { "annotations": {
"description": "Exposes and load balances the application pods", "description": "Exposes and load balances the application pods",
"service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"namespace\": \"\", \"kind\": \"Service\"}]"
"service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
} }
}, },
"spec": { "spec": {


+ 5
- 3
openshift/templates/django-postgresql.json View File

@ -4,11 +4,13 @@
"metadata": { "metadata": {
"name": "django-psql-example", "name": "django-psql-example",
"annotations": { "annotations": {
"description": "An example Django application with a PostgreSQL database",
"tags": "quickstart,python,django,postgresql",
"openshift.io/display-name": "Django + PostgreSQL (Ephemeral)",
"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.",
"tags": "quickstart,python,django",
"iconClass": "icon-python" "iconClass": "icon-python"
} }
}, },
"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.",
"labels": { "labels": {
"template": "django-psql-example" "template": "django-psql-example"
}, },
@ -20,7 +22,7 @@
"name": "${NAME}", "name": "${NAME}",
"annotations": { "annotations": {
"description": "Exposes and load balances the application pods", "description": "Exposes and load balances the application pods",
"service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"namespace\": \"\", \"kind\": \"Service\"}]"
"service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
} }
}, },
"spec": { "spec": {


+ 3
- 1
openshift/templates/django.json View File

@ -4,7 +4,8 @@
"metadata": { "metadata": {
"name": "django-example", "name": "django-example",
"annotations": { "annotations": {
"description": "An example Django application with no database",
"openshift.io/display-name": "Django",
"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.",
"tags": "quickstart,python,django", "tags": "quickstart,python,django",
"iconClass": "icon-python" "iconClass": "icon-python"
} }
@ -12,6 +13,7 @@
"labels": { "labels": {
"template": "django-example" "template": "django-example"
}, },
"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": [ "objects": [
{ {
"kind": "Service", "kind": "Service",


Loading…
Cancel
Save