Skip to content

[Hub CLI Migration] Internalize Hub CLI functionality into tkn#2876

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
divyansh42:merge-hub
May 20, 2026
Merged

[Hub CLI Migration] Internalize Hub CLI functionality into tkn#2876
tekton-robot merged 1 commit into
tektoncd:mainfrom
divyansh42:merge-hub

Conversation

@divyansh42
Copy link
Copy Markdown
Member

Changes

tektoncd/hub is deprecated and archived — no future development or bug fixes can happen
there. Since customers still rely on tkn hub to query Artifact Hub, this PR migrates the
hub CLI code directly into tektoncd/cli so it can be maintained going forward.

  • Copied hub CLI source from openshift-pipelines/hub main branch (v1.24.0) into
    pkg/cmd/hub/, including tests and testdata
  • Removed the github.com/tektoncd/hub external dependency from go.mod
  • Changed --type flag default from tekton to artifact
  • --type tekton still works but shows a deprecation warning
  • All 8 hub subcommands preserved with flags intact
  • Updated hack/update-deps.sh and test/e2e-tests.sh
    BREAKING CHANGE: Hub commands now default to --type=artifact instead of --type=tekton.
    Users relying on Tekton Hub resources must now explicitly specify --type=tekton when using
    hub search, get, or install commands.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Run the code checkers with make check
  • Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

BREAKING CHANGE: Hub CLI now defaults to Artifact Hub (--type=artifact) instead of Tekton Hub. Users who depend on Tekton Hub must explicitly pass --type=tekton, which is deprecated and will be removed in a future release.

@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 19, 2026
@tekton-robot tekton-robot requested a review from pradeepitm12 May 19, 2026 09:29
@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 19, 2026
@divyansh42 divyansh42 force-pushed the merge-hub branch 3 times, most recently from 3707a3e to a66ebfa Compare May 19, 2026 11:55
@tekton-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 19, 2026
Comment thread pkg/cmd/hub/cmd/root.go Outdated
Comment thread pkg/cmd/hub/cmd/root.go Outdated
@pratap0007
Copy link
Copy Markdown
Contributor

Thanks,@divyansh42, for the PR!
/lgtm

@tekton-robot tekton-robot added lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels May 20, 2026
@tekton-robot tekton-robot removed lgtm Indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels May 20, 2026
@pratap0007
Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 20, 2026
@divyansh42
Copy link
Copy Markdown
Member Author

/retest

Remove external dependency on github.com/tektoncd/hub and integrate
the Hub CLI commands directly into the tektoncd/cli codebase. This
eliminates the need for the openshift-pipelines/hub fork replacement
and simplifies the dependency management.

BREAKING CHANGE: Hub commands now default to --type=artifact instead
of --type=tekton. Users relying on Tekton Hub resources must now
explicitly specify --type=tekton when using hub search, get, or
install commands.

Signed-off-by: divyansh42 <diagrawa@redhat.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label May 20, 2026
@pratap0007
Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 20, 2026
@tekton-robot tekton-robot merged commit 52e30ca into tektoncd:main May 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants