Skip to content

Commit

Permalink
fix: specificity of matchLabels in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
trev-dev committed Dec 5, 2024
1 parent ad11982 commit 33a98c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions tools/openshift/frontend-tls.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ objects:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp:
labels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
branch: '${BRANCH}'
name: '${APP_NAME}-frontend-${ENVIRONMENT}'
spec:
replicas: ${{MIN_REPLICAS}}
selector:
matchLabels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
strategy:
type: RollingUpdate
rollingUpdate:
Expand All @@ -32,7 +32,7 @@ objects:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp:
labels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
deploymentconfig: '${APP_NAME}-frontend-${ENVIRONMENT}'
spec:
containers:
Expand Down Expand Up @@ -89,7 +89,7 @@ objects:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp:
labels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
name: '${APP_NAME}-frontend-${ENVIRONMENT}'
spec:
ports:
Expand All @@ -98,14 +98,14 @@ objects:
protocol: TCP
targetPort: 2015
selector:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
deploymentconfig: '${APP_NAME}-frontend-${ENVIRONMENT}'
- apiVersion: v1
kind: Route
metadata:
name: '${APP_NAME}-frontend-${ENVIRONMENT}'
labels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
annotations:
openshift.io/host.generated: 'true'
router.openshift.io/cookie-same-site: 'Strict'
Expand Down
12 changes: 6 additions & 6 deletions tools/openshift/frontend.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ objects:
annotations:
openshift.io/generated-by: OpenShiftNewApp
labels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
branch: '${BRANCH}'
name: '${APP_NAME}-frontend-${ENVIRONMENT}'
spec:
replicas: ${{MIN_REPLICAS}}
selector:
matchLabels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
strategy:
type: RollingUpdate
rollingUpdate:
Expand All @@ -30,7 +30,7 @@ objects:
annotations:
openshift.io/generated-by: OpenShiftNewApp
labels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
spec:
containers:
- image: image-registry.openshift-image-registry.svc:5000/${NAMESPACE}/${REPO_NAME}-frontend:${TAG}
Expand Down Expand Up @@ -79,7 +79,7 @@ objects:
service.alpha.openshift.io/serving-cert-secret-name: 'ofm-frontend-cert'
openshift.io/generated-by: OpenShiftNewApp
labels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
name: '${APP_NAME}-frontend-${ENVIRONMENT}'
spec:
ports:
Expand All @@ -88,13 +88,13 @@ objects:
protocol: TCP
targetPort: 2015
selector:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
- apiVersion: v1
kind: Route
metadata:
name: '${APP_NAME}-frontend-${ENVIRONMENT}'
labels:
app: '${APP_NAME}-frontend-${BRANCH}'
app: '${APP_NAME}-frontend-${ENVIRONMENT}-${BRANCH}'
annotations:
openshift.io/host.generated: 'true'
router.openshift.io/cookie-same-site: 'Strict'
Expand Down

0 comments on commit 33a98c0

Please sign in to comment.