Skip to content

henderiw-nephio/repository

Repository files navigation

repository

Repository is a repo that contains a controller that handles the lifecycle of repositories in gitea. It acts on a CRS repository.infra.nephio.org

Based on the Repository CR the following child resources are managed:

  • repo in gitea
  • access token to access the repo in gitea
  • secret in k8s cluster with the access token retrieved from gitea

The secret child resource is created in the namespace where the pod is running in.

TBD: how to find the pointer to the gitea server? right now hardcoded to gitea namespace and svc gitea-http

build

dcoker build; docker push

install

kpt pkg apply blueprint/repository

exmaple

apiVersion: infra.nephio.org/v1alpha1
kind: Repository
metadata:
  name: edge
spec: