-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial changes to e2e & test/utils enhanced & more structured changes to test samples resolved import dependencies add v1beta1 to API scheme & restructure test/data
- Loading branch information
1 parent
b7a0a91
commit ca266f8
Showing
154 changed files
with
7,708 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright The Shipwright Contributors | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package apis | ||
|
||
import ( | ||
"github.com/shipwright-io/build/pkg/apis/build/v1beta1" | ||
) | ||
|
||
func init() { | ||
// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back | ||
AddToSchemes = append(AddToSchemes, v1beta1.SchemeBuilder.AddToScheme) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
test/data/v1beta1/build_buildah_cr_custom_context+dockerfile.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
apiVersion: shipwright.io/v1beta1 | ||
kind: Build | ||
metadata: | ||
name: buildah-custom-context-dockerfile | ||
spec: | ||
source: | ||
git: | ||
url: https://github.com/shipwright-io/sample-nodejs | ||
contextDir: docker-build-renamed | ||
strategy: | ||
name: buildah-shipwright-managed-push | ||
kind: ClusterBuildStrategy | ||
paramValues: | ||
- name: dockerfile | ||
value: RenamedDockerfile | ||
output: | ||
image: image-registry.openshift-image-registry.svc:5000/build-examples/renamed-dockerfile |
18 changes: 18 additions & 0 deletions
18
test/data/v1beta1/build_buildah_cr_local_source_upload.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
apiVersion: shipwright.io/v1beta1 | ||
kind: Build | ||
metadata: | ||
name: buildah-golang-build-local-source-upload | ||
spec: | ||
source: | ||
git: | ||
url: https://github.com/shipwright-io/sample-go | ||
contextDir: docker-build | ||
strategy: | ||
name: buildah-shipwright-managed-push | ||
kind: ClusterBuildStrategy | ||
paramValues: | ||
- name: dockerfile | ||
value: Dockerfile | ||
output: | ||
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
apiVersion: shipwright.io/v1beta1 | ||
kind: Build | ||
metadata: | ||
name: buildah-golang-build-mutate | ||
spec: | ||
source: | ||
git: | ||
url: https://github.com/shipwright-io/sample-go | ||
contextDir: docker-build | ||
strategy: | ||
name: buildah-shipwright-managed-push | ||
kind: ClusterBuildStrategy | ||
paramValues: | ||
- name: dockerfile | ||
value: Dockerfile | ||
output: | ||
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app | ||
annotations: | ||
"org.opencontainers.image.url": "https://my-company.com/images" | ||
labels: | ||
"maintainer": "[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
apiVersion: shipwright.io/v1beta1 | ||
kind: Build | ||
metadata: | ||
name: buildah-golang-build | ||
spec: | ||
source: | ||
git: | ||
url: [email protected]:qu1queee/newtaxi.git | ||
cloneSecret: github-ssh-all | ||
strategy: | ||
name: buildah-shipwright-managed-push | ||
kind: ClusterBuildStrategy | ||
paramValues: | ||
- name: dockerfile | ||
value: Dockerfile | ||
output: | ||
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
apiVersion: shipwright.io/v1beta1 | ||
kind: Build | ||
metadata: | ||
name: buildah-golang-build | ||
spec: | ||
source: | ||
git: | ||
url: [email protected]:eduardooli/newtaxi.git | ||
strategy: | ||
name: buildah-shipwright-managed-push | ||
kind: ClusterBuildStrategy | ||
paramValues: | ||
- name: dockerfile | ||
value: Dockerfile | ||
output: | ||
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app |
24 changes: 24 additions & 0 deletions
24
test/data/v1beta1/build_buildkit_cr_insecure_registry.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
apiVersion: shipwright.io/v1beta1 | ||
kind: Build | ||
metadata: | ||
name: buildkit-build | ||
spec: | ||
source: | ||
git: | ||
url: https://github.com/shipwright-io/sample-go | ||
contextDir: docker-build | ||
paramValues: | ||
- name: insecure-registry | ||
value: "true" | ||
- name: platforms | ||
values: | ||
- value: linux/amd64 | ||
- value: linux/arm64 | ||
strategy: | ||
name: buildkit | ||
kind: ClusterBuildStrategy | ||
retention: | ||
atBuildDeletion: true | ||
output: | ||
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: shipwright.io/v1beta1 | ||
kind: Build | ||
metadata: | ||
name: buildpack-golang-build | ||
spec: | ||
source: | ||
git: | ||
url: https://github.com/shipwright-io/sample-go | ||
contextDir: source-build | ||
strategy: | ||
name: buildpacks-v3 | ||
kind: ClusterBuildStrategy | ||
output: | ||
image: image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app |
Oops, something went wrong.