1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-25 06:17:50 +00:00
catalog/task/gcs-delete-bucket/0.1
PuneetPunamiya 5a3e5f630f Adds category field as an annotation as tekton.dev/categories
- Initially all tags were mapped to categories in Hub,
     for e.g. config.yaml: https://github.com/tektoncd/hub/blob/master/config.yaml,
     so whenever a new tag was added in a task it was mapped to a category called `others`.
     Hence before every release we had to manually map these new tags to some category,
     hence after the discussion in Catalog and Hub WG, a proposal was created for adding
     a category as an annotation.

   - PR to update the TEP-0003-Tekton Catalog Organization: https://github.com/tektoncd/community/pull/352

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2021-07-26 13:15:08 +01:00
..
samples Modifies directory names based on the proposal 2020-07-14 19:01:58 +01:00
gcs-delete-bucket.yaml Adds category field as an annotation as tekton.dev/categories 2021-07-26 13:15:08 +01:00
README.md This patch splits gcs-delete-bucket task from the gcs directory 2020-07-13 13:41:58 +01:00

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