Skip to content

Commit

Permalink
chore(ci): database deploymentConfig to deployment (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
fergmac authored Oct 11, 2024
1 parent 3213b81 commit a0aec33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
6 changes: 3 additions & 3 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ objects:
apiVersion: v1
metadata:
creationTimestamp:
name: gwells-global-config${NAME_SUFFIX}-backend
name: gwells-global-config${NAME_SUFFIX}
labels:
appver: gwells${NAME_SUFFIX}-backend
app: gwells${NAME_SUFFIX}-backend
appver: gwells${NAME_SUFFIX}
app: gwells${NAME_SUFFIX}
data:
DB_REPLICATE: ${DB_REPLICATE}
DJANGO_DEBUG: ${DJANGO_DEBUG}
Expand Down
24 changes: 7 additions & 17 deletions database/postgresql.dc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ objects:
protocol: TCP
targetPort: 5432
selector:
name: ${DATABASE_SERVICE_NAME}
deployment: ${DATABASE_SERVICE_NAME}
sessionAffinity: None
type: ClusterIP
status:
Expand All @@ -157,23 +157,25 @@ objects:
requests:
storage: ${VOLUME_CAPACITY}
storageClassName: ${STORAGE_CLASS}
- apiVersion: v1
kind: DeploymentConfig
- apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
template.alpha.openshift.io/wait-for-ready: "true"
name: ${DATABASE_SERVICE_NAME}
spec:
replicas: 1
selector:
name: ${DATABASE_SERVICE_NAME}
matchLabels:
deployment: ${DATABASE_SERVICE_NAME}
strategy:
type: Recreate
template:
metadata:
labels:
name: ${DATABASE_SERVICE_NAME}
appver: gwells${NAME_SUFFIX}
deployment: ${DATABASE_SERVICE_NAME}
spec:
containers:
- capabilities: {}
Expand Down Expand Up @@ -223,7 +225,7 @@ objects:
secretKeyRef:
key: PG_ROOT_PASSWORD
name: crunchy-db-credentials
image: " "
image: "ghcr.io/bcgov/nr-gwells/database:76"
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
Expand Down Expand Up @@ -280,16 +282,4 @@ objects:
- configMap:
name: ${DATABASE_SERVICE_NAME}-setupcfg
name: ${DATABASE_SERVICE_NAME}-setupcfg
triggers:
- imageChangeParams:
automatic: true
containerNames:
- postgresql
from:
kind: ImageStreamTag
name: ${IMAGE_STREAM_NAME}:${IMAGE_STREAM_VERSION}
namespace: ${IMAGE_STREAM_NAMESPACE}
lastTriggeredImage: ""
type: ImageChange
- type: ConfigChange
status: {}

0 comments on commit a0aec33

Please sign in to comment.