1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/gcs-create-bucket/0.1
PuneetPunamiya 40393cd4cc Modifies directory names based on the proposal
- sample --> samples
  - example --> samples
  - test --> tests

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
2020-07-14 19:01:58 +01:00
..
samples Modifies directory names based on the proposal 2020-07-14 19:01:58 +01:00
gcs-create-bucket.yaml This patch splits gcs-create-bucket task from the gcs directory 2020-07-13 13:41:58 +01:00
README.md This patch splits gcs-create-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-create-bucket

A Task that creates a new 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)
  • project: The project with which your bucket will be associated. (required)
  • storageClass: The storage class for the new bucket. STANDARD, NEARLINE, COLDLINE, or ARCHIVE. (default: "STANDARD")
  • region: The region, dual-region, or multi-region for the new bucket. (default: "")
  • uniformAccess: Set this to "true" if the bucket should be created with bucket-level permissions instead of Access Control Lists. (default: "false")
  • serviceAccountPath: The path to the service account credential file in your credentials workspace. (default: "service_account.json")

gcs-create-bucket

This TaskRun uses the gcs-create-bucket Task to create a new bucket in the singapore region.

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: test-create-a-bucket
spec:
  taskRef:
    name: gcs-create-bucket
  workspaces:
  - name: credentials
    secret:
      secretName: my-gcs-credentials
      defaultMode: 0400
  params:
  - name: bucketName
    value: gs://my-fancy-new-test-bucket-12345
  - name: project
    value: my-test-project
  - name: region
    value: ASIA-SOUTHEAST1