Skip to content

Commit de11d75

Browse files
committed
fix: specificity of matchlabels
1 parent e4d8608 commit de11d75

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/openshift/d365api.deployment.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ objects:
1212
annotations:
1313
openshift.io/generated-by: OpenShiftNewApp
1414
labels:
15-
app: '${APP_NAME}-d365api-${BRANCH}'
15+
app: '${APP_NAME}-d365api-${ENVIRONMENT}-${BRANCH}'
1616
branch: '${BRANCH}'
1717
name: '${APP_NAME}-d365api-${ENVIRONMENT}'
1818
spec:
1919
replicas: ${{MIN_REPLICAS}}
2020
selector:
2121
matchLabels:
22-
app: '${APP_NAME}-d365api-${BRANCH}'
22+
app: '${APP_NAME}-d365api-${ENVIRONMENT}-${BRANCH}'
2323
strategy:
2424
type: RollingUpdate
2525
rollingUpdate:
@@ -30,7 +30,7 @@ objects:
3030
annotations:
3131
openshift.io/generated-by: OpenShiftNewApp
3232
labels:
33-
app: '${APP_NAME}-d365api-${BRANCH}'
33+
app: '${APP_NAME}-d365api-${ENVIRONMENT}-${BRANCH}'
3434
spec:
3535
containers:
3636
- image: image-registry.openshift-image-registry.svc:5000/${NAMESPACE}/${REPO_NAME}api:${TAG}
@@ -94,7 +94,7 @@ objects:
9494
service.alpha.openshift.io/serving-cert-secret-name: 'ofm-backend-cert'
9595
openshift.io/generated-by: OpenShiftNewApp
9696
labels:
97-
app: '${APP_NAME}-d365api-${BRANCH}'
97+
app: '${APP_NAME}-d365api-${ENVIRONMENT}-${BRANCH}'
9898
name: '${APP_NAME}-d365api-${ENVIRONMENT}'
9999
spec:
100100
ports:
@@ -107,13 +107,13 @@ objects:
107107
protocol: TCP
108108
targetPort: 443
109109
selector:
110-
app: '${APP_NAME}-d365api-${BRANCH}'
110+
app: '${APP_NAME}-d365api-${ENVIRONMENT}-${BRANCH}'
111111
- apiVersion: v1
112112
kind: Route
113113
metadata:
114114
name: '${APP_NAME}-d365api-${ENVIRONMENT}'
115115
labels:
116-
app: '${APP_NAME}-d365api-${BRANCH}'
116+
app: '${APP_NAME}-d365api-${ENVIRONMENT}-${BRANCH}'
117117
annotations:
118118
openshift.io/host.generated: 'true'
119119
router.openshift.io/cookie-same-site: 'Strict'

0 commit comments

Comments
 (0)