diff --git a/openshift/templates/backup/backup-deploy.yaml b/openshift/templates/backup/backup-deploy.yaml index 94efdb3..b45846b 100644 --- a/openshift/templates/backup/backup-deploy.yaml +++ b/openshift/templates/backup/backup-deploy.yaml @@ -95,8 +95,8 @@ objects: ftp-password: ${FTP_PASSWORD} ftp-url-host: ${FTP_URL_HOST} - - kind: DeploymentConfig - apiVersion: v1 + - kind: Deployment + apiVersion: apps/v1 metadata: name: ${NAME} labels: @@ -107,20 +107,10 @@ objects: spec: strategy: type: Recreate - triggers: - - type: ConfigChange - - type: ImageChange - imageChangeParams: - automatic: true - containerNames: - - ${NAME} - from: - kind: ImageStreamTag - namespace: ${IMAGE_NAMESPACE} - name: ${SOURCE_IMAGE_NAME}:${TAG_NAME} replicas: 1 selector: - name: ${NAME} + matchLabels: + name: ${NAME} template: metadata: name: ${NAME} @@ -145,7 +135,7 @@ objects: path: ${CONFIG_FILE_NAME} containers: - name: ${NAME} - image: "" + image: "${IMAGE_REGISTRY}/${IMAGE_NAMESPACE}/${SOURCE_IMAGE_NAME}:${IMAGE_TAG}" ports: [] env: - name: BACKUP_STRATEGY @@ -230,7 +220,7 @@ parameters: displayName: Source Image Name description: The name of the image to use for this resource. Use 'backup-{database name}' depending on your database provider required: true - value: backup-postgres + value: backup-container - name: APP_NAME displayName: App Name description: Used to group resources together. Defaults to backup-container @@ -249,8 +239,17 @@ parameters: - name: IMAGE_NAMESPACE displayName: Image Namespace description: The namespace of the OpenShift project containing the imagestream for the application. + value: bcgovimages + - name: "IMAGE_REGISTRY" + description: "The base OpenShift docker registry" + displayName: "Docker Image Registry" required: true - value: + # Set value to "docker-registry.default.svc:5000" if using OCP3 + value: "docker.io" + - name: IMAGE_TAG + displayName: + description: Image tag name, e.g. latest + value: latest - name: TAG_NAME displayName: Environment TAG name description: The TAG name for this environment, e.g., dev, test, prod