Add hosted mode support for addon template (#182) - #183
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mikeshng The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Warning Review limit reached
More reviews will be available in 56 minutes and 31 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis PR adds an enhancement proposal and metadata for Hosted Mode support in AddOnTemplate-based addons. It describes the template-agent and rendering changes, hosted-manifest placement rules, deployment and registration behavior, validation coverage, rollout criteria, compatibility behavior, and alternatives. ChangesHosted Mode design proposal
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/assign @kahirokunn @tesshuflower |
…o#182) Signed-off-by: Mike Ng <ming@redhat.com>
ff5306e to
df18d53
Compare
| #### AddOnTemplate with Hosted Mode Annotations | ||
|
|
||
| ```yaml | ||
| apiVersion: addon.open-cluster-management.io/v1beta1 |
There was a problem hiding this comment.
This enhancement assumes AddOnTemplate is already promoted to v1beta1. That work should be quite trivial compare to this enhancement.
|
@mikeshng Thank you for the great proposal! After reviewing it, I think there are still some challenges when trying to express hosted addons like managed-serviceaccount or cluster-proxy using AddOnTemplate. First, it's unresolved how to provide the kubeconfig that the agent running on the hosting cluster uses to access the managed cluster. Currently, managed-serviceaccount has its own provisioner on the addon side and generates/updates a managed kubeconfig using a least-privilege ServiceAccount token, but this seems less like something specific to managed-serviceaccount and more like a challenge common to hosted addons in general. For this reason, how about giving this responsibility to AddOnTemplate or the addon-framework side? For example, a mechanism that provisions, for the agent on the hosting cluster, a kubeconfig for accessing the managed cluster with least privilege. If it could handle generating the kubeconfig using a ServiceAccount token on the managed cluster side, placing it into a Secret on the hosting cluster side, refresh, and cleanup, then each addon wouldn't need to have its own provisioner. On top of that, how to reflect the prepared managed kubeconfig into the AddOnTemplate manifests is also a challenge. The proposal adds With these two things in place, hosted addons like managed-serviceaccount and cluster-proxy could likely be expressed with AddOnTemplate as well. |
|
@kahirokunn what you said is all true. It's a huge amount of work to get it fully functioning. |
|
Exactly... I think it will take a significant amount of time for both design and implementation to get it fully functioning. 😂 |
Add hosted mode support for addon template enhancement proposal
For #182
Summary by CodeRabbit