Skip to content
An Operator that installs Gitea
Branch: master
Clone or download
Latest commit c6d6249 Feb 19, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update Nov 26, 2018
build update Dockerfile Nov 13, 2018
pkg add version to status Nov 30, 2018
templates remove the deploy oauthproxy option from the custom resource Nov 19, 2018
test/e2e remove the deploy oauthproxy option from the custom resource Nov 19, 2018
version Bump version 0.0.3. Feb 18, 2019
.travis.yml Standardise makefile Dec 13, 2018
Gopkg.lock vendor Nov 18, 2018
Gopkg.toml update to operator-sdk version to 0.1.1 Nov 7, 2018
Makefile Bump version 0.0.3. Feb 18, 2019 Bump version 0.0.3. Feb 18, 2019

Gitea Operator

Build Status

Project Info
License: Apache License, Version 2.0
IRC #integreatly channel in the freenode network.

An Operator that installs Gitea. Installation is performed by creating a custom resource of kind Gitea. You can uninstall Gitea by removing this resource. The Operator will also watch all Gitea resources and reinstall them if they are deleted.

Installing the Operator

First we need to create a Service Account, Role and Role Binding in order to grant the required permissions to the Operator. The install target of the Makefile will take care of this. Make sure you are logged in with a user that has permission to create those resources.

$ oc login -u system:admin
$ ORG=<registry url> make image/build
$ ORG=<registry url> make image/push
$ make cluster/prepare

Then review deploy/operator.yaml and update the image url to your preferred registry and deploy it:

$ make cluster/deploy

Verify the Operator is running by opening the gitea namespace. You should see a Pod with the name gitea-operator.

Running the Operator locally

Instead of pulling the operator image from a registry and installing it in your namespace you can also run the Operator locally. This is especially useful for development:

$ oc login -u system:admin
$ make cluster/prepare
$ make code/run

Installing Gitea

Create a custom resource of type Gitea with the following spec:

kind: Gitea
  name: example-gitea
  hostname: <gitea.apps.CLUSTER_URL>

An example can be found under deploy/cr.yaml

Start the installation with

$ oc create -f <path to your CR>


Update operator version files:

Commit changes and open pull request.

When the PR is accepted, create a new release tag:

git tag v<version> && git push upstream v<version>

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.