Consume Resources with the Hub Resolver
TOC
Feature OverviewPrerequisitesReference a TaskReference a PipelineReference a StepActionHistorical Pipeline Catalog CompatibilityParameter ReferenceVerificationLearn MoreFeature Overview
Tekton hub resolver can fetch remote Task, Pipeline, and StepAction
manifests from artifacthub-shim when TektonConfig points the Artifact Hub
endpoint to the shim API.
The resolver catalog parameter must match a repository.yaml
gitRepositories[].repositories[].name value for ConfigMap-backed repositories,
or one of the built-in catalog names:
The built-in StepAction catalog is registered only when the packaged catalog
contains a stepaction/ directory.
Prerequisites
artifacthub-shimis installed and ready.- Tekton hub resolver is enabled.
TektonConfig.spec.pipeline.hub-resolver-config.default-typeis set toartifact, or each reference explicitly passestype: artifact.default-tekton-hub-catalogremains set tocatalog; current resolver versions still read it even when Artifact Hub mode is the default.
Reference a Task
Use a remote Task in taskRef.
Reference a Pipeline
Use a remote Pipeline in pipelineRef.
Reference a StepAction
Use a remote StepAction in a step ref.
StepAction references should pass catalog explicitly. Current hub resolver
defaults only include Artifact Hub task and pipeline catalog settings.
Historical Pipeline Catalog Compatibility
Older Pipeline references may use catalog: catalog. New references should use
catalog-pipelines, but shim keeps a built-in catalog alias from
pipeline/catalog to pipeline/catalog-pipelines for compatibility. See
Historical Pipeline Catalog References
for the exact behavior and recommended cleanup.
Parameter Reference
Verification
If a resource does not resolve, first check the TaskRun or PipelineRun
status:
Resolver failures usually appear before the workload Pod is created. If the failure mentions a missing catalog, package, or version, inspect the repository ConfigMap Events:
Look for RepositorySourceReady, RepositorySourceInvalid, or
RepositorySourceDegraded. Use the resolver logs only after the run status and
repository Events do not explain the failure.