Skip to content

Commit 639c79d

Browse files
infernus01tekton-robot
authored andcommitted
docs: Switch from deprecated Tekton Hub to ArtifactHub
Signed-off-by: Shubham Bhardwaj <[email protected]>
1 parent bd983cf commit 639c79d

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

docs/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ of the event. Inside the root key, the whole `spec` and `status` of the resource
134134
"params": [
135135
{
136136
"name": "url",
137-
"value": "https://api.hub.tekton.dev/resource/96"
137+
"value": "https://artifacthub.io/packages/tekton-task/tekton-catalog-tasks/git-clone"
138138
}
139139
],
140140
"resources": {},

docs/hub-resolver.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Use resolver type `hub`.
1414
| Param Name | Description | Example Value |
1515
|------------------|-------------------------------------------------------------------------------|------------------------------------------------------------|
1616
| `catalog` | The catalog from where to pull the resource (Optional) | Default: `tekton-catalog-tasks` (for `task` kind); `tekton-catalog-pipelines` (for `pipeline` kind) |
17-
| `type` | The type of Hub from where to pull the resource (Optional). Either `artifact` or `tekton` | Default: `artifact` |
17+
| `type` | The type of Hub from where to pull the resource (Optional). Either `artifact` or `tekton` | Default: `artifact` (recommended). Note: `tekton` type is deprecated. |
1818
| `kind` | Either `task` or `pipeline` (Optional) | Default: `task` |
1919
| `name` | The name of the task or pipeline to fetch from the hub | `golang-build` |
2020
| `version` | Version or a Constraint (see [below](#version-constraint) of a task or a pipeline to pull in from. Wrap the number in quotes! | `"0.5.0"`, `">= 0.5.0"` |
@@ -49,9 +49,9 @@ for the name, namespace and defaults that the resolver ships with.
4949
### Configuring the Hub API endpoint
5050

5151
The Hub Resolver supports to resolve resources from the [Artifact Hub](https://artifacthub.io/) and the [Tekton Hub](https://hub.tekton.dev/),
52-
which can be configured by setting the `type` field of the resolver.
52+
which can be configured by setting the `type` field of the resolver.
5353

54-
*(Please note that the [Tekton Hub](https://hub.tekton.dev/) will be deprecated after [migration to the Artifact Hub](https://github.com/tektoncd/hub/issues/667) is done.)*
54+
** DEPRECATION NOTICE: [Tekton Hub](https://hub.tekton.dev/) is deprecated. Users should migrate to [Artifact Hub](https://artifacthub.io/) for discovering and managing Tekton resources. See the [migration guide](https://github.com/tektoncd/hub/issues/667) for more information.**
5555

5656
When setting the `type` field to `artifact`, the resolver will hit the public hub api at https://artifacthub.io/ by default
5757
but you can configure your own (for example to use a private hub

examples/v1/pipelineruns/beta/http-resolver-credentials.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ metadata:
1717
generateName: http-resolver-
1818
spec:
1919
workspaces:
20-
- name: output
21-
emptyDir: {}
20+
- name: output
21+
emptyDir: {}
2222
pipelineSpec:
2323
workspaces:
24-
- name: output
24+
- name: output
2525
tasks:
2626
- name: http-resolver
2727
taskRef:
2828
resolver: http
2929
params:
3030
- name: url
31-
value: https://api.hub.tekton.dev/v1/resource/tekton/task/git-clone/0.10/raw
31+
value: https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.10/git-clone.yaml
3232
- name: http-username
3333
value: git
3434
- name: http-password-secret

examples/v1/pipelineruns/beta/http-resolver.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ metadata:
55
generateName: http-resolver-
66
spec:
77
workspaces:
8-
- name: output
9-
emptyDir: {}
8+
- name: output
9+
emptyDir: {}
1010
pipelineSpec:
1111
workspaces:
12-
- name: output
12+
- name: output
1313
tasks:
1414
- name: http-resolver
1515
taskRef:
1616
resolver: http
1717
params:
1818
- name: url
19-
value: https://api.hub.tekton.dev/v1/resource/tekton/task/git-clone/0.10/raw
19+
value: https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.10/git-clone.yaml
2020
params:
2121
- name: url
2222
value: "https://github.com/kelseyhightower/nocode"

0 commit comments

Comments
 (0)