Skip to content

GitHub support for infra repo - #73

Merged
nephio-prow[bot] merged 2 commits into
nephio-project:mainfrom
shekharc-in:github-support-for-infra-repo
Sep 8, 2026
Merged

GitHub support for infra repo#73
nephio-prow[bot] merged 2 commits into
nephio-project:mainfrom
shekharc-in:github-support-for-infra-repo

Conversation

@shekharc-in

Copy link
Copy Markdown
Contributor

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.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 16, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@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

@shekharc-in

Copy link
Copy Markdown
Contributor Author

/easycla

@nephio-prow

nephio-prow Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liamfallon

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

@nephio-prow nephio-prow Bot added the approved label Sep 8, 2026
@liamfallon

Copy link
Copy Markdown
Member

/lgtm

@nephio-prow nephio-prow Bot added the lgtm label Sep 8, 2026
@nephio-prow
nephio-prow Bot merged commit 3730c90 into nephio-project:main Sep 8, 2026
9 checks passed
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.

2 participants