Skip to content

Add per-resolution url parameter to Hub Resolver#9459

Closed
ab-ghosh wants to merge 1 commit intotektoncd:mainfrom
ab-ghosh:feature/multiple-artifact-hub-url
Closed

Add per-resolution url parameter to Hub Resolver#9459
ab-ghosh wants to merge 1 commit intotektoncd:mainfrom
ab-ghosh:feature/multiple-artifact-hub-url

Conversation

@ab-ghosh
Copy link
Member

@ab-ghosh ab-ghosh commented Feb 27, 2026

Changes

Implements Option A from #9353: adds a url parameter to the Hub Resolver that allows Pipeline authors to override the hub API endpoint on a per-resolution basis, instead of relying solely on the cluster-wide ARTIFACT_HUB_API or
TEKTON_HUB_API environment variables.

  • Adds a new optional url param that accepts an absolute HTTP/HTTPS URL
  • When specified, overrides ARTIFACT_HUB_API or TEKTON_HUB_API based on type
  • When omitted, falls back to the cluster-configured default
  • Validates the URL scheme

Option B (multiple default URLs with fallback at the cluster level) will be addressed in a follow-up PR

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • pre-commit Passed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

 Hub Resolver now supports an optional 'url' parameter to override the hub API endpoint per resolution, enabling use of internal hub instances.

Allow Pipeline authors to override the hub API endpoint per-resolution
via a new  parameter, instead of relying solely on the cluster-wide
ARTIFACT_HUB_API or TEKTON_HUB_API environment variables.

- Enables distributed catalog ownership across teams
- Supports air-gapped and private deployments
- Follows existing patterns (git resolver already has per-resolution url)
- Backwards compatible (current behavior unchanged when url not specified)

Signed-off-by: ab-ghosh <abghosh@redhat.com>
@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Feb 27, 2026
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign jeromeju after the PR has been reviewed.
You can assign the PR to them by writing /assign @jeromeju in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 27, 2026
@ab-ghosh
Copy link
Member Author

/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 27, 2026
@ab-ghosh
Copy link
Member Author

ab-ghosh commented Mar 1, 2026

Closing this PR in favor of a single PR that implements Option C (Option A + Option B combined) as discussed in #9353.

@ab-ghosh ab-ghosh closed this Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants