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
dcoker build; docker push
kpt pkg apply blueprint/repository
apiVersion: infra.nephio.org/v1alpha1
kind: Repository
metadata:
name: edge
spec: