Skip to content

Commit

Permalink
Drop imagestreams
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Oct 7, 2024
1 parent d8b9bbc commit 70ada10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
23 changes: 2 additions & 21 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ parameters:
- name: ZONE
description: Deployment zone, e.g. pr-### or prod
required: true
- name: IMAGE_TAG
description: Image tag to use
value: latest
- name: DOMAIN
value: apps.silver.devops.gov.bc.ca
- name: CPU_REQUEST
Expand Down Expand Up @@ -40,7 +37,7 @@ parameters:
- name: REGISTRY
description: Container registry to import from (internal is image-registry.openshift-image-registry.svc:5000)
value: ghcr.io
- name: ORG_NAME
- name: ORG
description: Organization name, e.g. bcgov
value: bcgov
- name: PROMOTE
Expand Down Expand Up @@ -99,22 +96,6 @@ objects:
- podSelector: {}
policyTypes:
- Ingress
- apiVersion: v1
kind: ImageStream
metadata:
labels:
app: "${NAME}-${ZONE}"
name: "${NAME}-${ZONE}-${COMPONENT}"
spec:
lookupPolicy:
local: false
tags:
- name: "${IMAGE_TAG}"
from:
kind: DockerImage
name: "${REGISTRY}/${PROMOTE}"
referencePolicy:
type: Local
- kind: Deployment
apiVersion: apps/v1
metadata:
Expand All @@ -135,7 +116,7 @@ objects:
deployment: "${NAME}-${ZONE}-${COMPONENT}"
spec:
containers:
- image: "${NAME}-${ZONE}-${COMPONENT}:${IMAGE_TAG}"
- image: ${REGISTRY}/${ORG}/${NAME}/${COMPONENT}:${ZONE}
imagePullPolicy: Always
name: "${NAME}"
env:
Expand Down
24 changes: 4 additions & 20 deletions frontend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ parameters:
- name: ZONE
description: Deployment zone, e.g. pr-### or prod
required: true
- name: IMAGE_TAG
description: Image tag to use
value: latest
- name: DOMAIN
value: apps.silver.devops.gov.bc.ca
- name: CPU_REQUEST
Expand All @@ -32,6 +29,9 @@ parameters:
- name: REGISTRY
description: Container registry to import from (internal is image-registry.openshift-image-registry.svc:5000)
value: ghcr.io
- name: ORG
description: Organization name, e.g. bcgov
value: bcgov
- name: PROMOTE
description: Image (namespace/name:tag) to promote/import
value: bcgov/nr-results-exam/frontend:prod
Expand All @@ -49,22 +49,6 @@ parameters:
from: "[a-zA-Z0-9]{32}"
generate: expression
objects:
- apiVersion: v1
kind: ImageStream
metadata:
labels:
app: "${NAME}-${ZONE}"
name: "${NAME}-${ZONE}-${COMPONENT}"
spec:
lookupPolicy:
local: false
tags:
- name: "${IMAGE_TAG}"
from:
kind: DockerImage
name: "${REGISTRY}/${PROMOTE}"
referencePolicy:
type: Local
- kind: Deployment
apiVersion: apps/v1
metadata:
Expand All @@ -85,7 +69,7 @@ objects:
deployment: "${NAME}-${ZONE}-${COMPONENT}"
spec:
containers:
- image: "${NAME}-${ZONE}-${COMPONENT}:${IMAGE_TAG}"
- image: ${REGISTRY}/${ORG}/${NAME}/${COMPONENT}:${ZONE}
securityContext:
capabilities:
add: ["NET_BIND_SERVICE"]
Expand Down

0 comments on commit 70ada10

Please sign in to comment.