Skip to content

Commit

Permalink
Updated api versions from default v1 to current fully qualified (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy authored Apr 29, 2020
1 parent 2da9f73 commit b3a38b8
Show file tree
Hide file tree
Showing 28 changed files with 111 additions and 111 deletions.
8 changes: 4 additions & 4 deletions basic-dotnet-core/.openshift/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ metadata:
version: 1.2.0
name: generic-dotnet-jenkins-pipeline
objects:
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
application: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- kind: "BuildConfig"
apiVersion: "v1"
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
application: ${APPLICATION_NAME}
Expand All @@ -44,7 +44,7 @@ objects:
value: "${APPLICATION_SOURCE_REPO}"
- name: "APPLICATION_SOURCE_REF"
value: "${APPLICATION_SOURCE_REF}"
- apiVersion: v1
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
Expand Down
10 changes: 5 additions & 5 deletions basic-dotnet-core/.openshift/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ objects:
targetPort: 8080
selector:
deploymentConfig: ${APPLICATION_NAME}
- apiVersion: v1
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
Expand All @@ -37,14 +37,14 @@ objects:
host: ${HOSTNAME_HTTP}
to:
name: ${APPLICATION_NAME}
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- apiVersion: v1
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
Expand Down Expand Up @@ -98,15 +98,15 @@ objects:
name: ${APPLICATION_NAME}:latest
type: ImageChange
- type: ConfigChange
- apiVersion: v1
groupNames: null
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
labels:
template: basic-tomcat-template
name: jenkins_edit
namespace: ${NAMESPACE}
groupNames: null
roleRef:
name: edit
subjects:
Expand Down
8 changes: 4 additions & 4 deletions basic-nginx/.openshift/builds/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ metadata:
version: 1.2.0
name: generic-nginx-jenkins-pipeline
objects:
- kind: "BuildConfig"
apiVersion: "v1"
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
application: ${APPLICATION_NAME}
Expand Down Expand Up @@ -40,7 +40,7 @@ objects:
value: "${SOURCE_REPOSITORY_REF}"
- name: "CONTEXT_DIR"
value: "${CONTEXT_DIR}"
- apiVersion: v1
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
Expand All @@ -64,7 +64,7 @@ objects:
namespace: ${IMAGE_STREAM_NAMESPACE}
type: Source
successfulBuildHistoryLimit: 3
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
Expand Down
10 changes: 5 additions & 5 deletions basic-nginx/.openshift/deployment/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
description: Application template for applications built using a Jenkins Pipeline
name: deployment-template
objects:
- apiVersion: v1
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
Expand Down Expand Up @@ -54,14 +54,14 @@ objects:
name: ${APPLICATION_NAME}:latest
type: ImageChange
- type: ConfigChange
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${APPLICATION_NAME}${ENV}
- apiVersion: v1
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
Expand Down Expand Up @@ -92,15 +92,15 @@ objects:
selector:
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
- apiVersion: v1
groupNames: null
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
labels:
template: basic-nginx-template
name: jenkins_edit
namespace: ${APPLICATION_NAME}${ENV}
groupNames: null
roleRef:
name: edit
subjects:
Expand Down
4 changes: 2 additions & 2 deletions basic-spring-boot-tekton/.openshift/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ objects:
subjects:
- kind: ServiceAccount
name: ${SA_NAME}
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
Expand Down Expand Up @@ -194,7 +194,7 @@ objects:
value: ${APPLICATION_NAME}
- name: deployment
value: ${APPLICATION_NAME}
- apiVersion: v1
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
Expand Down
10 changes: 5 additions & 5 deletions basic-spring-boot-tekton/.openshift/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ objects:
targetPort: 8080
selector:
deploymentConfig: ${APPLICATION_NAME}
- apiVersion: v1
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
Expand All @@ -38,14 +38,14 @@ objects:
host: ${HOSTNAME_HTTP}
to:
name: ${APPLICATION_NAME}
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- apiVersion: v1
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
Expand Down Expand Up @@ -99,15 +99,15 @@ objects:
name: ${APPLICATION_NAME}:latest
type: ImageChange
- type: ConfigChange
- apiVersion: v1
groupNames: null
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
labels:
template: basic-tomcat-template
name: ${SA_NAME}_edit
namespace: ${NAMESPACE}
groupNames: null
roleRef:
name: edit
subjects:
Expand Down
8 changes: 4 additions & 4 deletions basic-spring-boot/.openshift/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
version: 1.2.0
name: generic-java-jenkins-pipeline
objects:
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
Expand All @@ -21,8 +21,8 @@ objects:
app.kubernetes.io/managed-by: applier
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- kind: "BuildConfig"
apiVersion: "v1"
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
app.kubernetes.io/name: ${APPLICATION_NAME}
Expand Down Expand Up @@ -53,7 +53,7 @@ objects:
value: "${APPLICATION_SOURCE_REPO}"
- name: "APPLICATION_SOURCE_REF"
value: "${APPLICATION_SOURCE_REF}"
- apiVersion: v1
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
Expand Down
10 changes: 5 additions & 5 deletions basic-spring-boot/.openshift/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ objects:
targetPort: 8080
selector:
deploymentConfig: ${APPLICATION_NAME}
- apiVersion: v1
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
Expand All @@ -46,7 +46,7 @@ objects:
host: ${HOSTNAME_HTTP}
to:
name: ${APPLICATION_NAME}
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
Expand All @@ -57,7 +57,7 @@ objects:
app.kubernetes.io/managed-by: applier
name: ${APPLICATION_NAME}
namespace: ${NAMESPACE}
- apiVersion: v1
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
Expand Down Expand Up @@ -119,8 +119,7 @@ objects:
name: ${APPLICATION_NAME}:latest
type: ImageChange
- type: ConfigChange
- apiVersion: v1
groupNames: null
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
Expand All @@ -133,6 +132,7 @@ objects:
template: basic-tomcat-template
name: jenkins_edit
namespace: ${NAMESPACE}
groupNames: null
roleRef:
name: edit
subjects:
Expand Down
8 changes: 4 additions & 4 deletions basic-tomcat/.openshift/builds/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ metadata:
version: 1.2.0
name: generic-java-jenkins-pipeline
objects:
- kind: "BuildConfig"
apiVersion: "v1"
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
application: ${APPLICATION_NAME}
Expand Down Expand Up @@ -40,7 +40,7 @@ objects:
value: "${APPLICATION_SOURCE_REF}"
- name: "BUILD_CONTEXT_DIR"
value: "${APPLICATION_CONTEXT_DIR}"
- apiVersion: v1
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
Expand All @@ -64,7 +64,7 @@ objects:
namespace: ${IMAGE_STREAM_NAMESPACE}
type: Source
successfulBuildHistoryLimit: 3
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
Expand Down
10 changes: 5 additions & 5 deletions basic-tomcat/.openshift/deployment/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
description: Application template for applications built using a Jenkins Pipeline
name: deployment-template
objects:
- apiVersion: v1
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
Expand Down Expand Up @@ -61,14 +61,14 @@ objects:
name: ${APPLICATION_NAME}:latest
type: ImageChange
- type: ConfigChange
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
namespace: ${APPLICATION_NAME}${ENV}
- apiVersion: v1
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
Expand Down Expand Up @@ -118,15 +118,15 @@ objects:
selector:
app: ${APPLICATION_NAME}
deploymentConfig: ${APPLICATION_NAME}
- apiVersion: v1
groupNames: null
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
creationTimestamp: null
labels:
template: basic-tomcat-template
name: jenkins_edit
namespace: ${APPLICATION_NAME}${ENV}
groupNames: null
roleRef:
name: edit
subjects:
Expand Down
8 changes: 4 additions & 4 deletions blue-green-spring/.openshift/builds/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ metadata:
version: 1.2.0
name: generic-java-jenkins-pipeline
objects:
- kind: "BuildConfig"
apiVersion: "v1"
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
application: ${APPLICATION_NAME}
Expand All @@ -38,7 +38,7 @@ objects:
value: "${APPLICATION_SOURCE_REPO}"
- name: "APPLICATION_SOURCE_REF"
value: "${APPLICATION_SOURCE_REF}"
- apiVersion: v1
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
Expand All @@ -60,7 +60,7 @@ objects:
name: ${IMAGE_STREAM_TAG_NAME}
namespace: ${IMAGE_STREAM_NAMESPACE}
type: Source
- apiVersion: v1
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
Expand Down
Loading

0 comments on commit b3a38b8

Please sign in to comment.