Skip to content

GitHub support for infra repo - #73

Open
shekharc-in wants to merge 2 commits into
nephio-project:mainfrom
shekharc-in:github-support-for-infra-repo
Open

GitHub support for infra repo#73
shekharc-in wants to merge 2 commits into
nephio-project:mainfrom
shekharc-in:github-support-for-infra-repo

Conversation

@shekharc-in

Copy link
Copy Markdown

Add provider, url, and org fields to Repository CRD

Summary

Adds three optional fields to RepositorySpec so the Nephio infrastructure
controllers 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

Field Type Description
provider *string Git provider type. Enum: gitea, github, gitlab. Defaults to gitea.
url *string Base URL for the git provider API. Required for Gitea, optional for GitHub/GitLab.
org *string Organization / owner name for the repository.

All three are +optional. provider carries
+kubebuilder:validation:Enum=gitea;github;gitlab and
+kubebuilder:default=gitea.

Regenerated config/crd/bases/infra.nephio.org_repositories.yaml and
infra/v1alpha1/zz_generated.deepcopy.go accordingly.

Why

Repository reconciliation is currently Gitea-only, with the endpoint and
owner 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.

@nephio-prow
nephio-prow Bot requested a review from johnbelamaric August 16, 2026 09:42
@nephio-prow

nephio-prow Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign liamfallon for approval by writing /assign @liamfallon in a comment. For more information see the Kubernetes Code Review Process.

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

@nephio-prow
nephio-prow Bot requested a review from kispaljr August 16, 2026 09:42
@linux-foundation-easycla

Copy link
Copy Markdown

CLA Not Signed

@nephio-prow

nephio-prow Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant