Skip to content

Commit

Permalink
Document deprecation of the build-gcs PipelineResource type
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored and tekton-robot committed Jan 29, 2021
1 parent 08177fa commit 14014b2
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,11 @@ service account.

--------------------------------------------------------------------------------

#### BuildGCS Storage Resource
#### `Deprecated: `BuildGCS Storage Resource

**NB:** This Resource type is _deprecated_, and will be removed in a future
release. To fetch objects from Google Cloud Storage, prefer the [GCS storage
resource](#gcs-storage-resource) instead.

The `build-gcs` storage resource points to a
[Google Cloud Storage](https://cloud.google.com/storage/) blob like
Expand Down
3 changes: 3 additions & 0 deletions docs/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ variable via `resources.inputs.<resourceName>.<variableName>` or

#### Variables for the `BuildGCS` type

**NB:** This Resource type is **Deprecated**. See [BuildGCS Storage
Resource](./resources.md#buildgcs-storage-resource) for more information.

| Variable | Description |
| -------- | ----------- |
| `name` | The name of the resource. |
Expand Down
2 changes: 2 additions & 0 deletions examples/v1alpha1/taskruns/build-gcs-targz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ spec:
value: gs://build-crd-tests/archive.tar.gz
- name: artifactType
value: TarGzArchive
# NB: The build-gcs PipelineResource type is deprecated, and will be
# removed in a future release.
- name: type
value: build-gcs
2 changes: 2 additions & 0 deletions examples/v1alpha1/taskruns/build-gcs-zip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ spec:
value: gs://build-crd-tests/archive.zip
- name: artifactType
value: ZipArchive
# NB: The build-gcs PipelineResource type is deprecated, and will be
# removed in a future release.
- name: type
value: build-gcs
2 changes: 2 additions & 0 deletions examples/v1beta1/taskruns/build-gcs-targz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ spec:
value: gs://build-crd-tests/archive.tar.gz
- name: artifactType
value: TarGzArchive
# NB: The build-gcs PipelineResource type is deprecated, and will be
# removed in a future release.
- name: type
value: build-gcs
2 changes: 2 additions & 0 deletions examples/v1beta1/taskruns/build-gcs-zip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ spec:
value: gs://build-crd-tests/archive.zip
- name: artifactType
value: ZipArchive
# NB: The build-gcs PipelineResource type is deprecated, and will be
# removed in a future release.
- name: type
value: build-gcs
1 change: 1 addition & 0 deletions pkg/apis/resource/v1alpha1/pipeline_resource_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const (

// PipelineResourceTypeBuildGCS is the subtype for the BuildGCSResources, which is simialr to the GCSResource but
// with additional functionality that was added to be compatible with knative build.
// Deprecated: This PipelineResource type is deprecated and support will be removed in a future release.
PipelineResourceTypeBuildGCS PipelineResourceType = "build-gcs"
)

Expand Down

0 comments on commit 14014b2

Please sign in to comment.