Skip to content

Commit

Permalink
modifying the sample examples to refer v1beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvajagtap committed Aug 8, 2023
1 parent 9b8a9f9 commit 4e5aa30
Show file tree
Hide file tree
Showing 35 changed files with 144 additions and 113 deletions.
10 changes: 7 additions & 3 deletions samples/build/build_buildah_shipwright_managed_push_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildah-golang-build
spec:
source:
url: https://github.com/shipwright-io/sample-go
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
strategy:
name: buildah-shipwright-managed-push
kind: ClusterBuildStrategy
dockerfile: Dockerfile
paramValues:
- name: dockerfile
values:
- value: Dockerfile
output:
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app
10 changes: 7 additions & 3 deletions samples/build/build_buildah_strategy_managed_push_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildah-golang-build
spec:
source:
url: https://github.com/shipwright-io/sample-go
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
strategy:
name: buildah-strategy-managed-push
kind: ClusterBuildStrategy
dockerfile: Dockerfile
paramValues:
- name: dockerfile
values:
- value: Dockerfile
output:
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app
7 changes: 3 additions & 4 deletions samples/build/build_buildkit_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildkit-build
annotations:
build.shipwright.io/build-run-deletion: "true"
spec:
source:
url: https://github.com/shipwright-io/sample-go
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
paramValues:
- name: platforms
Expand Down
5 changes: 3 additions & 2 deletions samples/build/build_buildpacks-v3-heroku_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildpack-nodejs-build-heroku
spec:
source:
url: https://github.com/shipwright-io/sample-nodejs
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build-heroku
strategy:
name: buildpacks-v3-heroku
Expand Down
5 changes: 3 additions & 2 deletions samples/build/build_buildpacks-v3-heroku_namespaced_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildpack-nodejs-build-namespaced-heroku
spec:
source:
url: https://github.com/shipwright-io/sample-nodejs
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build-heroku
strategy:
name: buildpacks-v3-heroku
Expand Down
7 changes: 3 additions & 4 deletions samples/build/build_buildpacks-v3_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildpack-nodejs-build
annotations:
build.shipwright.io/build-run-deletion: "false"
spec:
source:
url: https://github.com/shipwright-io/sample-nodejs
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build
strategy:
name: buildpacks-v3
Expand Down
5 changes: 3 additions & 2 deletions samples/build/build_buildpacks-v3_namespaced_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: buildpack-nodejs-build-namespaced
spec:
source:
url: https://github.com/shipwright-io/sample-nodejs
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build
strategy:
name: buildpacks-v3
Expand Down
12 changes: 7 additions & 5 deletions samples/build/build_kaniko-trivy-bad_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: kaniko-trivy-bad-build
annotations:
build.shipwright.io/build-run-deletion: "true"
spec:
source:
url: https://github.com/shipwright-io/sample-scanning
git:
url: https://github.com/shipwright-io/sample-scanning
strategy:
name: kaniko-trivy
kind: ClusterBuildStrategy
dockerfile: Dockerfile.bad
paramValues:
- name: dockerfile
values:
- value: "Dockerfile.bad"
output:
image: image-registry.openshift-image-registry.svc:5000/build-examples/bad-trivy
12 changes: 7 additions & 5 deletions samples/build/build_kaniko-trivy-good_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: kaniko-trivy-good-build
annotations:
build.shipwright.io/build-run-deletion: "true"
spec:
source:
url: https://github.com/shipwright-io/sample-scanning
git:
url: https://github.com/shipwright-io/sample-scanning
strategy:
name: kaniko-trivy
kind: ClusterBuildStrategy
dockerfile: Dockerfile.good
paramValues:
- name: dockerfile
values:
- value: "Dockerfile.good"
output:
image: image-registry.openshift-image-registry.svc:5000/build-examples/good-trivy
8 changes: 3 additions & 5 deletions samples/build/build_kaniko_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: kaniko-golang-build
annotations:
build.shipwright.io/build-run-deletion: "true"
spec:
source:
url: https://github.com/shipwright-io/sample-go
git:
url: https://github.com/shipwright-io/sample-go
contextDir: docker-build
strategy:
name: kaniko
kind: ClusterBuildStrategy
dockerfile: Dockerfile
output:
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app
7 changes: 3 additions & 4 deletions samples/build/build_ko_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: ko-build
annotations:
build.shipwright.io/build-run-deletion: "false"
spec:
paramValues:
- name: go-flags
Expand All @@ -14,7 +12,8 @@ spec:
- name: package-directory
value: ./cmd/shipwright-build-controller
source:
url: https://github.com/shipwright-io/build
git:
url: https://github.com/shipwright-io/build
strategy:
name: ko
kind: ClusterBuildStrategy
Expand Down
11 changes: 7 additions & 4 deletions samples/build/build_source-to-image_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
name: s2i-nodejs-build
spec:
source:
url: https://github.com/shipwright-io/sample-nodejs
git:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build/
strategy:
name: source-to-image
kind: ClusterBuildStrategy
builder:
image: docker.io/centos/nodejs-10-centos7
paramValues:
- name: builder-image
values:
- value: "docker.io/centos/nodejs-10-centos7"
output:
image: image-registry.openshift-image-registry.svc:5000/build-examples/nodejs-ex
4 changes: 2 additions & 2 deletions samples/buildrun/buildrun_buildah_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: buildah-golang-buildrun
spec:
buildRef:
build:
name: buildah-golang-build
7 changes: 3 additions & 4 deletions samples/buildrun/buildrun_buildkit_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: buildkit-buildrun
spec:
buildRef:
build:
name: buildkit-build
serviceAccount:
generate: true
serviceAccount: ".generate"
7 changes: 3 additions & 4 deletions samples/buildrun/buildrun_buildpacks-v3-heroku_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: buildpack-nodejs-buildrun-heroku
spec:
buildRef:
build:
name: buildpack-nodejs-build-heroku
serviceAccount:
generate: true
serviceAccount: ".generate"
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: buildpack-nodejs-buildrun-namespaced-heroku
spec:
buildRef:
build:
name: buildpack-nodejs-build-namespaced-heroku
serviceAccount:
generate: true
serviceAccount: ".generate"
7 changes: 3 additions & 4 deletions samples/buildrun/buildrun_buildpacks-v3_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: buildpack-nodejs-buildrun
spec:
buildRef:
build:
name: buildpack-nodejs-build
serviceAccount:
generate: true
serviceAccount: ".generate"
7 changes: 3 additions & 4 deletions samples/buildrun/buildrun_buildpacks-v3_namespaced_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: buildpack-nodejs-buildrun-namespaced
spec:
buildRef:
build:
name: buildpack-nodejs-build-namespaced
serviceAccount:
generate: true
serviceAccount: ".generate"
7 changes: 3 additions & 4 deletions samples/buildrun/buildrun_kaniko-trivy-bad_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: kaniko-trivy-bad-buildrun
spec:
buildRef:
build:
name: kaniko-trivy-bad-build
serviceAccount:
generate: true
serviceAccount: ".generate"
7 changes: 3 additions & 4 deletions samples/buildrun/buildrun_kaniko-trivy-good_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: kaniko-trivy-good-buildrun
spec:
buildRef:
build:
name: kaniko-trivy-good-build
serviceAccount:
generate: true
serviceAccount: ".generate"
7 changes: 3 additions & 4 deletions samples/buildrun/buildrun_kaniko_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: kaniko-golang-buildrun
spec:
buildRef:
build:
name: kaniko-golang-build
serviceAccount:
generate: true
serviceAccount: ".generate"
7 changes: 3 additions & 4 deletions samples/buildrun/buildrun_ko_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: ko-buildrun
spec:
buildRef:
build:
name: ko-build
serviceAccount:
generate: true
serviceAccount: ".generate"
4 changes: 2 additions & 2 deletions samples/buildrun/buildrun_source-to-image_cr.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
apiVersion: shipwright.io/v1alpha1
apiVersion: shipwright.io/v1beta1
kind: BuildRun
metadata:
name: s2i-nodejs-buildrun
spec:
buildRef:
build:
name: s2i-nodejs-build
Loading

0 comments on commit 4e5aa30

Please sign in to comment.