You can deploy a Gitea server in your cluster instead of GitHub to provide a self contained GitOps workflow environment for your specific use case.
The gitea-operator can be used to manage the Gitea server installation in the cluster. It will simplify the setup so that you can create a minimal Gitea CR to configure and install the Gitea server.
-
Install the OpenShift Lifecycle Manager
CatalogSource
andSubscription
to deploy thegitea-operator
in the clusteroc apply -k gitea/operator
-
Wait for the gitea-operator installation to complete and the
gitea.pfe-rhpds.com
CRD is available on theodh-core
cluster$ oc get crd gitea.pfe.rhpds.com NAME CREATED AT gitea.pfe.rhpds.com 2023-08-25T03:00:13Z
-
Create the Gitea CustomResource to deploy the server with an admin user
oc apply -k gitea/server
-
Once complete, there will be a gitea application deployed in the
gitea
namespace on the cluster. You can login to the gitea server on the route in thegitea
namespace using the credentials specifed in the giteaGITEA_SERVER_URL="http://$(oc get route -n gitea gitea-ai-edge -o jsonpath='{.spec.host}')"
Open a browser to
${GITEA_SERVER_URL}
ORgit clone
the repo locally to customize the manifests for your use casegit clone ${GITEA_SERVER_URL}/edge-user-1/ai-edge-gitops