-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEP-0079] Add Support Tier in tkn hub install command #759
[TEP-0079] Add Support Tier in tkn hub install command #759
Conversation
No functionality change in this PR. Prior to this change, the Hub CLI supports only 1 type of Hub (Tekton Hub). This commit 1) refactors the `ResourceResult` and `ResourceVersionResult` to interfaces; 2) creates THResourceResult and THResourceVersionResult structs implementing the interfaces, keeping original support for Tekton Hub; 3) creates AHResourceResult and AHResourceVersionResult for Artifact Hub, implementations will be added in later PRs.
Prior to this commit, the tkn hub install command is only supported with --type tekton. This commit adds the tkn hub install functionality for --type artifact, which fetches resources from the Artifact Hub and install to user's cluster. Example: tkn hub install task golang-build --from tekton-catalogs-task --version 0.2.0
Part of tektoncd#691. Prior to this change, no support tier, catalog or org information was added to the resource annotation when installing from Hub. This commit adds `artifacthub.io/catalog`, "artifacthub.io/org" and "artifacthub.io/support-tier" labels to the resource being installed to indicate the source and support tier of the catalog. The 3 labels will only be added when installing with `--type artifact` flag. Details can be found in https://github.com/tektoncd/community/blob/main/teps/0079-tekton-catalog-support-tiers.md#cli
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Part of #691 |
@QuanZhang-William: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/close this pr for too much rebase work. Please check #775 |
Changes
Part of #691 and based on #757. Prior to this change, no support tier, catalog or org information was added to the resource annotation when installing from Hub.
This commit adds
artifacthub.io/catalog
, "artifacthub.io/org" and "artifacthub.io/support-tier" labels to the resource being installed to indicate the source and support tier of the catalog. The 3 labels will only be added when installing with--type artifact
flag.Details can be found in https://github.com/tektoncd/community/blob/main/teps/0079-tekton-catalog-support-tiers.md#cli
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make api-check
make ui-check
See the contribution guide for more details.