-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- support both `ZipArchive` and `TarGzArchive` types now supported by `gcs-fetcher` - mark `Archive` type as deprecated ❌ (`ZipArchive` is the equivalent) - rename `gcs-resource-spec-taskrun.yaml` -> `build-gcs-{targz,zip}.yaml` to make their purposes clearer - make the taskrun name more descriptive - fetch a smaller file (`archive.{zip,tar.gz}`) containing a single file for faster tests ⏩ - remove `test/gcs_taskrun_test.go` which didn't usefully test anything that wasn't tested in the YAML test - update docs to reflect these changes 📜 - explicitly set `gcs-fetcher` image entrypoint And, while I'm at it: - remove support for `build-gcs` upload functionality - this doesn't appear to have worked and AFAIK nobody used it anyway - if we want to support it, we can, but probably not like that... it only supported `Manifest`-style uploads, for instance 🌵 - remove `gcs-uploader` image from flags, and from `vendor/` and from `tekton/` release pipeline YAMLs 🎉
- Loading branch information
1 parent
6089c9a
commit 5638925
Showing
18 changed files
with
549 additions
and
546 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
16 changes: 7 additions & 9 deletions
16
...s/taskruns/gcs-resource-spec-taskrun.yaml → examples/taskruns/build-gcs-targz.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 |
---|---|---|
@@ -1,27 +1,25 @@ | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: TaskRun | ||
metadata: | ||
name: list-file | ||
name: build-gcs-targz | ||
spec: | ||
taskSpec: | ||
inputs: | ||
resources: | ||
- name: rules | ||
- name: source | ||
type: storage | ||
steps: | ||
- name: list | ||
image: ubuntu | ||
command: ["/bin/bash"] | ||
args: ['-c', 'ls -al /workspace/rules/rules_docker-master'] # tests build-gcs resource | ||
- image: ubuntu | ||
command: ['cat', 'source/file.txt'] # tests build-gcs resource | ||
inputs: | ||
resources: | ||
- name: rules | ||
- name: source | ||
resourceSpec: | ||
type: storage | ||
params: | ||
- name: location | ||
value: gs://build-crd-tests/rules_docker-master.zip | ||
value: gs://build-crd-tests/archive.tar.gz | ||
- name: artifactType | ||
value: Archive | ||
value: TarGzArchive | ||
- name: type | ||
value: build-gcs |
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,25 @@ | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: TaskRun | ||
metadata: | ||
name: build-gcs-zip | ||
spec: | ||
taskSpec: | ||
inputs: | ||
resources: | ||
- name: source | ||
type: storage | ||
steps: | ||
- image: ubuntu | ||
command: ['cat', 'source/file.txt'] # tests build-gcs resource | ||
inputs: | ||
resources: | ||
- name: source | ||
resourceSpec: | ||
type: storage | ||
params: | ||
- name: location | ||
value: gs://build-crd-tests/archive.zip | ||
- name: artifactType | ||
value: ZipArchive | ||
- name: type | ||
value: build-gcs |
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
Oops, something went wrong.