GitHub support for infra repo - #73
Conversation
|
[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. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
Hi @shekharc-in. Thanks for your PR. I'm waiting for a nephio-project member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|



Add provider, url, and org fields to Repository CRD
Summary
Adds three optional fields to
RepositorySpecso the Nephio infrastructurecontrollers can target git providers other than Gitea.
This is the API half of GitHub provider support; the controller implementation
is a companion PR against
nephio-project/nephio.Changes
provider*stringgitea,github,gitlab. Defaults togitea.url*stringorg*stringAll three are
+optional.providercarries+kubebuilder:validation:Enum=gitea;github;gitlaband+kubebuilder:default=gitea.Regenerated
config/crd/bases/infra.nephio.org_repositories.yamlandinfra/v1alpha1/zz_generated.deepcopy.goaccordingly.Why
Repositoryreconciliation is currently Gitea-only, with the endpoint andowner derived from Gitea-specific configuration. Carrying the provider on the
resource lets a single cluster manage repositories across providers and lets
the controller pick the right client per resource, rather than being fixed at
deployment time.