Skip to content

Commit

Permalink
ci: moving to job
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Feb 12, 2024
1 parent 03c5eeb commit a32988f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions database/openshift.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,13 @@ parameters:
description: Deployment zone, e.g. pr-### or prod
required: true
objects:
- kind: DeploymentConfig
apiVersion: v1
- kind: Job
apiVersion: batch/v1
metadata:
name: ${NAME}-${ZONE}-${COMPONENT}
labels:
app: ${NAME}-${ZONE}
spec:
replicas: 1
selector:
deploymentconfig: ${NAME}-${ZONE}-${COMPONENT}
strategy:
type: Recreate
recreateParams:
timeoutSeconds: 600
activeDeadlineSeconds: 21600
spec:
template:
metadata:
name: ${NAME}-${ZONE}-${COMPONENT}
Expand Down Expand Up @@ -69,6 +61,4 @@ objects:
name: ${NAME}-${ZONE}
key: "database-password"
imagePullPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
schedulerName: default-scheduler
restartPolicy: Never

0 comments on commit a32988f

Please sign in to comment.