Skip to content

Commit

Permalink
Merge pull request #107 from jujaga/bugfix/octemplateversion
Browse files Browse the repository at this point in the history
Change Openshift templates to apiVersion template.openshift.io/v1
  • Loading branch information
WadeBarnes authored Apr 17, 2023
2 parents 8ba0ef0 + 234b243 commit 4401eb9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions openshift/templates/backup-cronjob/backup-cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
kind: "Template"
apiVersion: "v1"
apiVersion: "template.openshift.io/v1"
metadata:
name: "{$JOB_NAME}-cronjob-template"
annotations:
Expand All @@ -27,18 +27,18 @@ parameters:
displayName: "Source Image Name"
description: "The name of the image to use for this resource."
required: true
value: "backup-postgres"
value: "backup-container"
- name: "IMAGE_REGISTRY"
description: "The base OpenShift docker registry"
displayName: "Docker Image Registry"
required: true
# Set value to "docker-registry.default.svc:5000" if using OCP3
value: "image-registry.openshift-image-registry.svc:5000"
value: "docker.io"
- name: "IMAGE_NAMESPACE"
displayName: "Image Namespace"
description: "The namespace of the OpenShift project containing the imagestream for the application."
required: true
value: "backup-container"
value: "bcgovimages"
- name: "TAG_NAME"
displayName: "Environment TAG name"
description: "The TAG name for this environment, e.g., dev, test, prod"
Expand Down
2 changes: 1 addition & 1 deletion openshift/templates/backup/backup-build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Template
apiVersion: v1
apiVersion: "template.openshift.io/v1"
metadata:
name: ${NAME}-build-template
creationTimestamp: null
Expand Down
2 changes: 1 addition & 1 deletion openshift/templates/backup/backup-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Template
apiVersion: v1
apiVersion: "template.openshift.io/v1"
metadata:
name: ${NAME}-deployment-template
objects:
Expand Down
2 changes: 1 addition & 1 deletion openshift/templates/nsp/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
kind: Template
apiVersion: v1
apiVersion: "template.openshift.io/v1"
metadata:
name: global-nsp-build-template
objects:
Expand Down
2 changes: 1 addition & 1 deletion openshift/templates/nsp/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
kind: Template
apiVersion: v1
apiVersion: "template.openshift.io/v1"
metadata:
name: global-nsp-build-template
objects:
Expand Down

0 comments on commit 4401eb9

Please sign in to comment.