Skip to content

Commit dcd34c1

Browse files
chmoueltekton-robot
authored andcommitted
Set public Tekton Hub API as default catalog
Public tekton hub API was not set by default in the hub resolver, i understand that ArtifactHUB is the future but until then makes it more easier to use the tekton hub Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent c29e978 commit dcd34c1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

config/resolvers/resolvers-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ spec:
102102
# Override this env var to set a private hub api endpoint
103103
- name: ARTIFACT_HUB_API
104104
value: "https://artifacthub.io/"
105+
- name: TEKTON_HUB_API
106+
value: "https://api.hub.tekton.dev/"
105107
securityContext:
106108
allowPrivilegeEscalation: false
107109
readOnlyRootFilesystem: true

docs/hub-resolver.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ env
6464
value: "https://artifacthub.io/"
6565
```
6666
67-
When setting the `type` field to `tekton`, you **must** configure your own instance of the Tekton Hub by setting the `TEKTON_HUB_API` environment variable in
67+
When setting the `type` field to `tekton`, the resolver will hit the public
68+
tekton catalog api at https://api.hub.tekton.dev by default but you can configure
69+
your own instance of the Tekton Hub by setting the `TEKTON_HUB_API` environment
70+
variable in
6871
[`../config/resolvers/resolvers-deployment.yaml`](../config/resolvers/resolvers-deployment.yaml). Example:
6972

7073
```yaml

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ require (
190190
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
191191
github.com/golang/protobuf v1.5.3 // indirect
192192
github.com/google/gofuzz v1.2.0 // indirect
193-
github.com/hashicorp/go-version v1.6.0 // indirect
193+
github.com/hashicorp/go-version v1.6.0
194194
github.com/imdario/mergo v0.3.13 // indirect
195195
github.com/jmespath/go-jmespath v0.4.0 // indirect
196196
github.com/josharian/intern v1.0.0 // indirect

0 commit comments

Comments
 (0)