Skip to content

Commit

Permalink
Add volumes to sample BuildStrategy objects in order to fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Rum committed Apr 13, 2022
1 parent 6f69d94 commit dfb8927
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: ClusterBuildStrategy
metadata:
name: buildpacks-v3-heroku
spec:
volumes:
- name: platform-env
volumeSource:
emptyDir: {}
parameters:
- name: platform-api-version
description: The referenced version is the minimum version that all relevant buildpack implementations support.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: BuildStrategy
metadata:
name: buildpacks-v3-heroku
spec:
volumes:
- name: platform-env
volumeSource:
emptyDir: {}
parameters:
- name: platform-api-version
description: The referenced version is the minimum version that all relevant buildpack implementations support.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: ClusterBuildStrategy
metadata:
name: buildpacks-v3
spec:
volumes:
- name: platform-env
volumeSource:
emptyDir: {}
parameters:
- name: platform-api-version
description: The referenced version is the minimum version that all relevant buildpack implementations support.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: BuildStrategy
metadata:
name: buildpacks-v3
spec:
volumes:
- name: platform-env
volumeSource:
emptyDir: {}
parameters:
- name: platform-api-version
description: The referenced version is the minimum version that all relevant buildpack implementations support.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ kind: ClusterBuildStrategy
metadata:
name: kaniko-trivy
spec:
volumes:
- name: layout
volumeSource:
emptyDir: {}
- name: tar
volumeSource:
emptyDir: {}
buildSteps:
- name: kaniko-build
image: gcr.io/kaniko-project/executor:v1.8.1
Expand Down
4 changes: 4 additions & 0 deletions samples/buildstrategy/kaniko/buildstrategy_kaniko_cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: ClusterBuildStrategy
metadata:
name: kaniko
spec:
volumes:
- name: layout
volumeSource:
emptyDir: {}
buildSteps:
- name: build-and-push
image: gcr.io/kaniko-project/executor:v1.8.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ kind: ClusterBuildStrategy
metadata:
name: source-to-image-redhat
spec:
volumes:
- name: s2i
volumeSource:
emptyDir: {}
buildSteps:
- name: s2i-generate
image: registry.redhat.io/ocp-tools-43-tech-preview/source-to-image-rhel8:latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ kind: ClusterBuildStrategy
metadata:
name: source-to-image
spec:
volumes:
- name: gen-source
volumeSource:
emptyDir: {}
- name: layout
volumeSource:
emptyDir: {}
buildSteps:
- command:
- /usr/local/bin/s2i
Expand Down

0 comments on commit dfb8927

Please sign in to comment.