mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-21 05:55:35 +00:00
f4708d478e
At this moment all tasks which can be executed on linux/s390x or linux/ppc64le are tested and labelled accordingly. The rest of the tasks can be labelled as `linux/amd64`, which is default platform and where tasks are already tested via default PR testing cycle. Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
1.4 KiB
1.4 KiB
Google Cloud Storage Tasks
These Tasks
are for copying to and from GCS buckets from Pipelines.
These Tasks
do a similar job to the GCS
PipelineResource
and
are intended as its replacement. This is part of our plan to offer replacement
Tasks
for Pipeline Resources
as well as
document those replacements.
gcs-delete-bucket
A Task
that deletes a GCS bucket.
Workspaces
- credentials: A workspace that contains a service account key as a JSON file. This workspace should be populated from a Secret in your TaskRuns and PipelineRuns.
Parameters
- bucketName: The name of the bucket (including "gs://") to create. (required)
- serviceAccountPath: The path to the service account credential file in your credentials workspace. (default: "service_account.json")
gcs-delete-bucket
This TaskRun uses the gcs-delete-bucket Task to delete the bucket created in the previous example.
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: test-delete-a-bucket
spec:
taskRef:
name: gcs-delete-bucket
workspaces:
- name: credentials
secret:
secretName: my-gcs-credentials
defaultMode: 0400
params:
- name: bucketName
value: gs://my-fancy-new-test-bucket-12345
Platforms
The Task can be run on linux/amd64
platform.