Quick Start
This guide connects an existing Tekton installation to Artifact Hub Shim and resolves one Task from the built-in catalog.
TOC
PrerequisitesProcess OverviewVerify Artifact Hub ShimConfigure TektonVerify the Resolver ConfigurationResolve a Built-in TaskNext StepsPrerequisites
- Artifact Hub Shim is installed and ready.
Alauda DevOps Pipelinesv4.0 or later is installed.- You can edit
TektonConfigand create aTaskRunin a test namespace.
Process Overview
Verify Artifact Hub Shim
The following commands use the default namespace and Service name:
The readiness response should contain "status":"ready". A ready response
means that the API has published a catalog snapshot.
Configure Tekton
Standard ACP installations with Artifact Hub Shim integration may already
contain the following settings. If the values are absent or the plugin uses a
custom namespace, merge the applicable fields into TektonConfig.spec.pipeline:
Keep existing spec.pipeline fields that are unrelated to the hub resolver.
For Pipelines as Code and non-default installations, see
Configure Tekton Integration.
Verify the Resolver Configuration
Find the Tekton target namespace and inspect the reconciled ConfigMap:
Expected output:
Also verify that the resolver feature is enabled:
Expected output:
Resolve a Built-in Task
Create a TaskRun that references version 0.1 of the run-script Task. If your
packaged catalog offers another version, replace 0.1 with a listed version.
Save the manifest as taskrun.yaml, apply it to a test namespace, and inspect
the result:
Successful remote resolution causes Tekton to create the TaskRun pod. If the TaskRun remains in a resolution error, see Hub Resolver Cannot Resolve a Resource.