Skip to content

Commit a51feae

Browse files
committed
Merge pull request sclorg#22 from bparees/length
shorten service name to less than 24 chars
2 parents c84b9f8 + d3a54ad commit a51feae

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

openshift/templates/django-postgresql.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"kind": "Template",
33
"apiVersion": "v1",
44
"metadata": {
5-
"name": "django-postgresql-example",
5+
"name": "django-psql-example",
66
"annotations": {
77
"description": "An example Django application with a PostgreSQL database",
88
"tags": "instant-app,python,django,postgresql",
99
"iconClass": "icon-python"
1010
}
1111
},
1212
"labels": {
13-
"template": "django-postgresql-example"
13+
"template": "django-psql-example"
1414
},
1515
"objects": [
1616
{
1717
"kind": "Service",
1818
"apiVersion": "v1",
1919
"metadata": {
20-
"name": "django-postgresql-example",
20+
"name": "django-psql-example",
2121
"annotations": {
2222
"description": "Exposes and load balances the application pods"
2323
}
@@ -31,29 +31,29 @@
3131
}
3232
],
3333
"selector": {
34-
"name": "django-postgresql-example"
34+
"name": "django-psql-example"
3535
}
3636
}
3737
},
3838
{
3939
"kind": "Route",
4040
"apiVersion": "v1",
4141
"metadata": {
42-
"name": "django-postgresql-example"
42+
"name": "django-psql-example"
4343
},
4444
"spec": {
4545
"host": "${APPLICATION_DOMAIN}",
4646
"to": {
4747
"kind": "Service",
48-
"name": "django-postgresql-example"
48+
"name": "django-psql-example"
4949
}
5050
}
5151
},
5252
{
5353
"kind": "ImageStream",
5454
"apiVersion": "v1",
5555
"metadata": {
56-
"name": "django-postgresql-example",
56+
"name": "django-psql-example",
5757
"annotations": {
5858
"description": "Keeps track of changes in the application image"
5959
}
@@ -63,7 +63,7 @@
6363
"kind": "BuildConfig",
6464
"apiVersion": "v1",
6565
"metadata": {
66-
"name": "django-postgresql-example",
66+
"name": "django-psql-example",
6767
"annotations": {
6868
"description": "Defines how to build the application"
6969
}
@@ -90,7 +90,7 @@
9090
"output": {
9191
"to": {
9292
"kind": "ImageStreamTag",
93-
"name": "django-postgresql-example:latest"
93+
"name": "django-psql-example:latest"
9494
}
9595
},
9696
"triggers": [
@@ -110,7 +110,7 @@
110110
"kind": "DeploymentConfig",
111111
"apiVersion": "v1",
112112
"metadata": {
113-
"name": "django-postgresql-example",
113+
"name": "django-psql-example",
114114
"annotations": {
115115
"description": "Defines how to deploy the application server"
116116
}
@@ -125,11 +125,11 @@
125125
"imageChangeParams": {
126126
"automatic": true,
127127
"containerNames": [
128-
"django-postgresql-example"
128+
"django-psql-example"
129129
],
130130
"from": {
131131
"kind": "ImageStreamTag",
132-
"name": "django-postgresql-example:latest"
132+
"name": "django-psql-example:latest"
133133
}
134134
}
135135
},
@@ -139,20 +139,20 @@
139139
],
140140
"replicas": 1,
141141
"selector": {
142-
"name": "django-postgresql-example"
142+
"name": "django-psql-example"
143143
},
144144
"template": {
145145
"metadata": {
146-
"name": "django-postgresql-example",
146+
"name": "django-psql-example",
147147
"labels": {
148-
"name": "django-postgresql-example"
148+
"name": "django-psql-example"
149149
}
150150
},
151151
"spec": {
152152
"containers": [
153153
{
154-
"name": "django-postgresql-example",
155-
"image": "django-postgresql-example",
154+
"name": "django-psql-example",
155+
"image": "django-psql-example",
156156
"ports": [
157157
{
158158
"containerPort": 8080
@@ -293,7 +293,7 @@
293293
{
294294
"name": "APPLICATION_DOMAIN",
295295
"description": "The exposed hostname that will route to the Django service",
296-
"value": "django-postgresql-example.openshiftapps.com"
296+
"value": "django-psql-example.openshiftapps.com"
297297
},
298298
{
299299
"name": "GITHUB_WEBHOOK_SECRET",

0 commit comments

Comments
 (0)