Skip to content

Commit

Permalink
Pull buildah and kn tasks directly from catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
mgencur committed Dec 2, 2019
1 parent 61dc2b6 commit 0976ec0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 102 deletions.
4 changes: 2 additions & 2 deletions test/e2e/tekton_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ func TestTektonPipeline(t *testing.T) {
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/kn-deployer-rbac.yaml"}, runOpts{})
assert.NilError(t, err)

_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/buildah-task.yaml"}, runOpts{})
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", "https://raw.githubusercontent.com/tektoncd/catalog/master/buildah/buildah.yaml"}, runOpts{})
assert.NilError(t, err)

_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/kn-task.yaml"}, runOpts{})
_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", "https://raw.githubusercontent.com/tektoncd/catalog/master/kn/kn.yaml"}, runOpts{})
assert.NilError(t, err)

_, err = kubectl.RunWithOpts([]string{"apply", "-n", test.env.Namespace, "-f", basedir + "/kn-pipeline.yaml"}, runOpts{})
Expand Down
63 changes: 0 additions & 63 deletions test/resources/tekton/buildah-task.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions test/resources/tekton/kn-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ spec:
outputs:
- name: image
resource: image
params:
- name: DOCKERFILE
value: ./test/test_images/helloworld/Dockerfile
- name: kn-service-create
taskRef:
name: kn
Expand Down
36 changes: 0 additions & 36 deletions test/resources/tekton/kn-task.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion test/test_images/helloworld/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM golang:1.12 as builder

# Copy local code to the container image.
WORKDIR /go/src/knative.dev/client/test/test_images/helloworld
COPY . .
COPY ./test/test_images/helloworld/helloworld.go .

# Build the command inside the container.
# (You may fetch or manage dependencies here,
Expand Down

0 comments on commit 0976ec0

Please sign in to comment.