Skip to content

Commit

Permalink
TEP-0079: Tekton Catalog Support Tiers [Catalog Annotations]
Browse files Browse the repository at this point in the history
In this change, we update the `tekton.dev/catalog` annotation
to use the URL of the Catalog instead of its name. This makes
it easier for users to know which Catalog the resource came
from, especially when they have other Catalogs beyond those
provided by Tekton.
  • Loading branch information
jerop committed Jan 31, 2022
1 parent a39bdf8 commit 2a42f96
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions teps/0079-tekton-catalog-support-tiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,21 +351,24 @@ it may be difficult to identify which Tekton Catalog it came from
because they won't have the labels added by the CLI.

To make it easy for users to identify the source Catalog, we propose
adding a `tekton.dev/catalog` annotation to the resource yaml file,
as such:
adding two annotations:
* `tekton.dev/catalog` with the three part domain unique identifier
* `tekton.dev/catalog-url` with the repository path of the Catalog

```yaml
# resource from the community catalog
annotations:
tekton.dev/pipelines.minVersion: "0.17.0"
tekton.dev/tags: golang-lint
tekton.dev/catalog: community
tekton.dev/catalog: dev.tekton.catalog-community
tekton.dev/catalog-url: https://github.com/tektoncd/catalog
# resource from the official catalog
annotations:
tekton.dev/pipelines.minVersion: "0.30.0"
tekton.dev/tags: golang-fuzz
tekton.dev/catalog: official
tekton.dev/catalog: dev.tekton.catalog-official
tekton.dev/catalog-url: https://github.com/tektoncd/catalog-official
```

#### Community and Official Catalogs in Tekton Bundles
Expand Down

0 comments on commit 2a42f96

Please sign in to comment.