Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add app label to example templates #17224

Merged

Conversation

gabemontero
Copy link
Contributor

fixes bug https://bugzilla.redhat.com/show_bug.cgi?id=1503260

@openshift/sig-developer-experience fyi

/assign bparess

@openshift-ci-robot
Copy link

@gabemontero: GitHub didn't allow me to assign the following users: bparess.

Note that only openshift members can be assigned.

In response to this:

fixes bug https://bugzilla.redhat.com/show_bug.cgi?id=1503260

@openshift/sig-developer-experience fyi

/assign bparess

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 7, 2017
@gabemontero
Copy link
Contributor Author

/assign @bparees

@bparees
Copy link
Contributor

bparees commented Nov 7, 2017

@gabemontero you'll need to follow this up with commits to the upstream quickstart templates (really you're supposed to change them there first and then import the changes here).

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MYSQL_USER}\n Password: ${MYSQL_PASSWORD}\n Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.1/README.md.",
"labels": {
"template": "mariadb-persistent-template"
"template": "mariadb-persistent-template",
"app": "mariadb-persistent-template"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't want "-template" in these labels. compare what "oc new-app" produces for the label when run w/ the template.

Copy link

@InfoSec812 InfoSec812 Nov 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can. For example, if we want to spin up SonarQube, it needs an associated PostgreSQL DB instance and we want both the SonarQube instance and the PostgreSQL instance to have the same app label.

@bparees
Copy link
Contributor

bparees commented Nov 7, 2017

also i think the app label value needs to be a parameter.

@bparees
Copy link
Contributor

bparees commented Nov 7, 2017

(ok so the fruit wasn't that low hanging)

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MYSQL_USER}\n Password: ${MYSQL_PASSWORD}\n Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.1/README.md.",
"labels": {
"template": "mariadb-persistent-template"
"template": "mariadb-persistent-template",
"app": "mariadb-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MONGODB_USER}\n Password: ${MONGODB_PASSWORD}\n Database Name: ${MONGODB_DATABASE}\n Connection URL: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@${DATABASE_SERVICE_NAME}/${MONGODB_DATABASE}\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mongodb-container/blob/master/3.2/README.md.",
"labels": {
"template": "mongodb-ephemeral-template"
"template": "mongodb-ephemeral-template",
"app": "mongodb-ephemeral-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MONGODB_USER}\n Password: ${MONGODB_PASSWORD}\n Database Name: ${MONGODB_DATABASE}\n Connection URL: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@${DATABASE_SERVICE_NAME}/${MONGODB_DATABASE}\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mongodb-container/blob/master/3.2/README.md.",
"labels": {
"template": "mongodb-persistent-template"
"template": "mongodb-persistent-template",
"app": "mongodb-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MYSQL_USER}\n Password: ${MYSQL_PASSWORD}\n Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/5.7/README.md.",
"labels": {
"template": "mysql-ephemeral-template"
"template": "mysql-ephemeral-template",
"app": "mysql-ephemeral-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MYSQL_USER}\n Password: ${MYSQL_PASSWORD}\n Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/5.7/README.md.",
"labels": {
"template": "mysql-persistent-template"
"template": "mysql-persistent-template",
"app": "mysql-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${POSTGRESQL_USER}\n Password: ${POSTGRESQL_PASSWORD}\n Database Name: ${POSTGRESQL_DATABASE}\n Connection URL: postgresql://${DATABASE_SERVICE_NAME}:5432/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/9.5.",
"labels": {
"template": "postgresql-ephemeral-template"
"template": "postgresql-ephemeral-template",
"app": "postgresql-ephemeral-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${POSTGRESQL_USER}\n Password: ${POSTGRESQL_PASSWORD}\n Database Name: ${POSTGRESQL_DATABASE}\n Connection URL: postgresql://${DATABASE_SERVICE_NAME}:5432/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/9.5.",
"labels": {
"template": "postgresql-persistent-template"
"template": "postgresql-persistent-template",
"app": "postgresql-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Password: ${REDIS_PASSWORD}\n Connection URL: redis://${DATABASE_SERVICE_NAME}:6379/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/redis-container/blob/master/3.2.",
"labels": {
"template": "redis-ephemeral-template"
"template": "redis-ephemeral-template",
"app": "redis-ephemeral-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Password: ${REDIS_PASSWORD}\n Connection URL: redis://${DATABASE_SERVICE_NAME}:6379/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/redis-container/blob/master/3.2.",
"labels": {
"template": "redis-persistent-template"
"template": "redis-persistent-template",
"app": "redis-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -15,6 +15,9 @@
}
},
"message": "A Jenkins service has been created in your project. Log into Jenkins with your OpenShift account. The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md contains more information about using this template.",
"labels": {
"app": "jenkins-ephemeral"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -15,6 +15,9 @@
}
},
"message": "A Jenkins service has been created in your project. Log into Jenkins with your OpenShift account. The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md contains more information about using this template.",
"labels": {
"app": "jenkins-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when a DB template is used with another application and we want to associate it with that app we can.

@@ -16,7 +16,8 @@
},
"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/cake-ex/blob/master/README.md.",
"labels": {
"template": "cakephp-mysql-persistent"
"template": "cakephp-mysql-persistent",
"app": "cakephp-mysql-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -16,7 +16,8 @@
},
"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/cake-ex/blob/master/README.md.",
"labels": {
"template": "cakephp-mysql-example"
"template": "cakephp-mysql-example",
"app": "cakephp-mysql-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -16,7 +16,8 @@
},
"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/dancer-ex/blob/master/README.md.",
"labels": {
"template": "dancer-mysql-persistent"
"template": "dancer-mysql-persistent",
"app": "dancer-mysql-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -16,7 +16,8 @@
},
"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/dancer-ex/blob/master/README.md.",
"labels": {
"template": "dancer-mysql-example"
"template": "dancer-mysql-example",
"app": "dancer-mysql-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -16,7 +16,8 @@
},
"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": {
"template": "django-psql-persistent"
"template": "django-psql-persistent",
"app": "django-psql-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -16,7 +16,8 @@
},
"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": {
"template": "django-psql-example"
"template": "django-psql-example",
"app": "django-psql-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -16,7 +16,8 @@
},
"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/httpd-ex/blob/master/README.md.",
"labels": {
"template": "httpd-example"
"template": "httpd-example",
"app": "httpd-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -16,7 +16,8 @@
},
"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/nodejs-ex/blob/master/README.md.",
"labels": {
"template": "nodejs-mongo-persistent"
"template": "nodejs-mongo-persistent",
"app": "nodejs-mongo-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -16,7 +16,8 @@
},
"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/nodejs-ex/blob/master/README.md.",
"labels": {
"template": "nodejs-mongodb-example"
"template": "nodejs-mongodb-example",
"app": "nodejs-mongodb-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -12149,7 +12151,8 @@ var _examplesDbTemplatesMongodbEphemeralTemplateJson = []byte(`{
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MONGODB_USER}\n Password: ${MONGODB_PASSWORD}\n Database Name: ${MONGODB_DATABASE}\n Connection URL: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@${DATABASE_SERVICE_NAME}/${MONGODB_DATABASE}\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mongodb-container/blob/master/3.2/README.md.",
"labels": {
"template": "mongodb-ephemeral-template"
"template": "mongodb-ephemeral-template",
"app": "mongodb-ephemeral-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@gabemontero
Copy link
Contributor Author

gabemontero commented Nov 7, 2017 via email

@@ -12438,7 +12441,8 @@ var _examplesDbTemplatesMongodbPersistentTemplateJson = []byte(`{
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MONGODB_USER}\n Password: ${MONGODB_PASSWORD}\n Database Name: ${MONGODB_DATABASE}\n Connection URL: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@${DATABASE_SERVICE_NAME}/${MONGODB_DATABASE}\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mongodb-container/blob/master/3.2/README.md.",
"labels": {
"template": "mongodb-persistent-template"
"template": "mongodb-persistent-template",
"app": "mongodb-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -12751,7 +12755,8 @@ var _examplesDbTemplatesMysqlEphemeralTemplateJson = []byte(`{
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MYSQL_USER}\n Password: ${MYSQL_PASSWORD}\n Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/5.7/README.md.",
"labels": {
"template": "mysql-ephemeral-template"
"template": "mysql-ephemeral-template",
"app": "mysql-ephemeral-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -13041,7 +13046,8 @@ var _examplesDbTemplatesMysqlPersistentTemplateJson = []byte(`{
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${MYSQL_USER}\n Password: ${MYSQL_PASSWORD}\n Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/5.7/README.md.",
"labels": {
"template": "mysql-persistent-template"
"template": "mysql-persistent-template",
"app": "mysql-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -13336,7 +13342,8 @@ var _examplesDbTemplatesPostgresqlEphemeralTemplateJson = []byte(`{
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${POSTGRESQL_USER}\n Password: ${POSTGRESQL_PASSWORD}\n Database Name: ${POSTGRESQL_DATABASE}\n Connection URL: postgresql://${DATABASE_SERVICE_NAME}:5432/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/9.5.",
"labels": {
"template": "postgresql-ephemeral-template"
"template": "postgresql-ephemeral-template",
"app": "postgresql-ephemeral-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -13606,7 +13613,8 @@ var _examplesDbTemplatesPostgresqlPersistentTemplateJson = []byte(`{
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Username: ${POSTGRESQL_USER}\n Password: ${POSTGRESQL_PASSWORD}\n Database Name: ${POSTGRESQL_DATABASE}\n Connection URL: postgresql://${DATABASE_SERVICE_NAME}:5432/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/blob/master/9.5.",
"labels": {
"template": "postgresql-persistent-template"
"template": "postgresql-persistent-template",
"app": "postgresql-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -13900,7 +13908,8 @@ var _examplesDbTemplatesRedisEphemeralTemplateJson = []byte(`{
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Password: ${REDIS_PASSWORD}\n Connection URL: redis://${DATABASE_SERVICE_NAME}:6379/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/redis-container/blob/master/3.2.",
"labels": {
"template": "redis-ephemeral-template"
"template": "redis-ephemeral-template",
"app": "redis-ephemeral-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -14133,7 +14142,8 @@ var _examplesDbTemplatesRedisPersistentTemplateJson = []byte(`{
},
"message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n Password: ${REDIS_PASSWORD}\n Connection URL: redis://${DATABASE_SERVICE_NAME}:6379/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/redis-container/blob/master/3.2.",
"labels": {
"template": "redis-persistent-template"
"template": "redis-persistent-template",
"app": "redis-persistent-template"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -18403,7 +18413,8 @@ var _examplesQuickstartsCakephpMysqlPersistentJson = []byte(`{
},
"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/cake-ex/blob/master/README.md.",
"labels": {
"template": "cakephp-mysql-persistent"
"template": "cakephp-mysql-persistent",
"app": "cakephp-mysql-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -19008,7 +19019,8 @@ var _examplesQuickstartsCakephpMysqlJson = []byte(`{
},
"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/cake-ex/blob/master/README.md.",
"labels": {
"template": "cakephp-mysql-example"
"template": "cakephp-mysql-example",
"app": "cakephp-mysql-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -19587,7 +19599,8 @@ var _examplesQuickstartsDancerMysqlPersistentJson = []byte(`{
},
"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/dancer-ex/blob/master/README.md.",
"labels": {
"template": "dancer-mysql-persistent"
"template": "dancer-mysql-persistent",
"app": "dancer-mysql-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -20136,7 +20149,8 @@ var _examplesQuickstartsDancerMysqlJson = []byte(`{
},
"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/dancer-ex/blob/master/README.md.",
"labels": {
"template": "dancer-mysql-example"
"template": "dancer-mysql-example",
"app": "dancer-mysql-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

Copy link

@InfoSec812 InfoSec812 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensure that the app label is parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -20659,7 +20673,8 @@ var _examplesQuickstartsDjangoPostgresqlPersistentJson = []byte(`{
},
"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": {
"template": "django-psql-persistent"
"template": "django-psql-persistent",
"app": "django-psql-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -21218,7 +21233,8 @@ var _examplesQuickstartsDjangoPostgresqlJson = []byte(`{
},
"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": {
"template": "django-psql-example"
"template": "django-psql-example",
"app": "django-psql-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -21751,7 +21767,8 @@ var _examplesQuickstartsHttpdJson = []byte(`{
},
"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/httpd-ex/blob/master/README.md.",
"labels": {
"template": "httpd-example"
"template": "httpd-example",
"app": "httpd-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -22044,7 +22061,8 @@ var _examplesQuickstartsNodejsMongodbPersistentJson = []byte(`{
},
"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/nodejs-ex/blob/master/README.md.",
"labels": {
"template": "nodejs-mongo-persistent"
"template": "nodejs-mongo-persistent",
"app": "nodejs-mongo-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -22612,7 +22630,8 @@ var _examplesQuickstartsNodejsMongodbJson = []byte(`{
},
"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/nodejs-ex/blob/master/README.md.",
"labels": {
"template": "nodejs-mongodb-example"
"template": "nodejs-mongodb-example",
"app": "nodejs-mongodb-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -23156,7 +23175,8 @@ var _examplesQuickstartsRailsPostgresqlPersistentJson = []byte(`{
},
"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/rails-ex/blob/master/README.md.",
"labels": {
"template": "rails-pgsql-persistent"
"template": "rails-pgsql-persistent",
"app": "rails-pgsql-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -23785,7 +23805,8 @@ var _examplesQuickstartsRailsPostgresqlJson = []byte(`{
},
"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/rails-ex/blob/master/README.md.",
"labels": {
"template": "rails-postgresql-example"
"template": "rails-postgresql-example",
"app": "rails-postgresql-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -25477,6 +25498,9 @@ var _examplesJenkinsJenkinsEphemeralTemplateJson = []byte(`{
}
},
"message": "A Jenkins service has been created in your project. Log into Jenkins with your OpenShift account. The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md contains more information about using this template.",
"labels": {
"app": "jenkins-ephemeral"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -25778,6 +25802,9 @@ var _examplesJenkinsJenkinsPersistentTemplateJson = []byte(`{
}
},
"message": "A Jenkins service has been created in your project. Log into Jenkins with your OpenShift account. The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md contains more information about using this template.",
"labels": {
"app": "jenkins-persistent"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@@ -27472,7 +27499,8 @@ var _examplesQuickstartsCakephpMysqlJsonCakephpMysqlJson = []byte(`{
},
"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/cake-ex/blob/master/README.md.",
"labels": {
"template": "cakephp-mysql-example"
"template": "cakephp-mysql-example",
"app": "cakephp-mysql-example"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app label should be parameterized so that when templates are used in conjunction to form a single application we can make the app labels match.

@gabemontero
Copy link
Contributor Author

OK after a pow-wow with @bparees (who similarly had a pow-wow with @smarterclayton ), the net is

  • we are not updating oc process to add labels ... keeping it "pure"
  • we'll using template name for label value, not the value of the template label
  • we'll parameterize as previously requested by multiple folks
  • while we'll do the quickstarts and jenkins, we will NOT do the db's

@gabemontero
Copy link
Contributor Author

Another update ... turns out, we cannot parameterize the template labels yet ... @jim-minter has #16605 which will allow this, but that is prioritized for 3.8.

@bparees has directed me to ditch the parameters for now with this pull. We'll see about updating the templates to use parameters in 3.8 once #16605 has merged.

@gabemontero
Copy link
Contributor Author

And of course you can override the app label with the -l option on oc new-app or oc process

@gabemontero
Copy link
Contributor Author

OK, I've pushed updates per recent discussion, as well as did some display name clean up per a side request from @jwforres

@bparees bparees added the kind/bug Categorizes issue or PR as related to a bug. label Nov 8, 2017
@bparees
Copy link
Contributor

bparees commented Nov 8, 2017

/lgtm

@gabemontero please follow this up w/ changes to the upstream quickstart templates in the various example repos.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees, gabemontero

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 8, 2017
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue.

@openshift-merge-robot openshift-merge-robot merged commit 50a59f3 into openshift:master Nov 9, 2017
@gabemontero gabemontero deleted the template-app-label branch November 9, 2017 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants