Skip to content

Commit b8b3edd

Browse files
committed
added app label
1 parent e7a434c commit b8b3edd

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

openshift/gogs-persistent-template.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ objects:
1919
annotations:
2020
description: Exposes the database server
2121
name: ${APPLICATION_NAME}-postgresql
22+
labels:
23+
app: ${APPLICATION_NAME}
2224
spec:
2325
ports:
2426
- name: postgresql
@@ -32,6 +34,8 @@ objects:
3234
annotations:
3335
description: Defines how to deploy the database
3436
name: ${APPLICATION_NAME}-postgresql
37+
labels:
38+
app: ${APPLICATION_NAME}
3539
spec:
3640
replicas: 1
3741
selector:
@@ -241,6 +245,8 @@ objects:
241245
apiVersion: v1
242246
metadata:
243247
name: gogs-data
248+
labels:
249+
app: ${APPLICATION_NAME}
244250
spec:
245251
accessModes:
246252
- ReadWriteOnce
@@ -251,6 +257,8 @@ objects:
251257
apiVersion: v1
252258
metadata:
253259
name: gogs-postgres-data
260+
labels:
261+
app: ${APPLICATION_NAME}
254262
spec:
255263
accessModes:
256264
- ReadWriteOnce
@@ -261,6 +269,8 @@ objects:
261269
apiVersion: v1
262270
metadata:
263271
name: gogs-config
272+
labels:
273+
app: ${APPLICATION_NAME}
264274
data:
265275
app.ini: |
266276
RUN_MODE = prod

openshift/gogs-template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ objects:
3232
annotations:
3333
description: Defines how to deploy the database
3434
name: ${APPLICATION_NAME}-postgresql
35+
labels:
36+
app: ${APPLICATION_NAME}
3537
spec:
3638
replicas: 1
3739
selector:
@@ -239,6 +241,8 @@ objects:
239241
apiVersion: v1
240242
metadata:
241243
name: gogs-config
244+
labels:
245+
app: ${APPLICATION_NAME}
242246
data:
243247
app.ini: |
244248
RUN_MODE = prod

0 commit comments

Comments
 (0)