Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/integr8ly/gitea-operator
An Operator that installs Gitea
https://github.com/integr8ly/gitea-operator
Last synced: about 2 months ago
JSON representation
An Operator that installs Gitea
- Host: GitHub
- URL: https://github.com/integr8ly/gitea-operator
- Owner: integr8ly
- License: apache-2.0
- Archived: true
- Created: 2018-10-31T11:41:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T14:35:14.000Z (over 2 years ago)
- Last Synced: 2024-07-31T07:15:45.144Z (5 months ago)
- Language: Go
- Size: 30.1 MB
- Stars: 27
- Watchers: 19
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-gitea - gitea-operator - An Operator that installs Gitea (Packages / For internal use)
- awesome-gitea - gitea-operator - An Operator that installs Gitea (Packages / For internal use)
- awesome-gitea - gitea-operator - An Operator that installs Gitea (Packages / For internal use)
README
# Gitea Operator
[![Build Status](https://travis-ci.org/integr8ly/gitea-operator.svg?branch=master)](https://travis-ci.org/integr8ly/gitea-operator)
| | Project Info |
| --------------- | ------------- |
| License: | Apache License, Version 2.0 |
| IRC | [#integreatly](https://webchat.freenode.net/?channels=integreatly) channel in the [freenode](http://freenode.net/) 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.
```sh
$ oc login -u system:admin
$ ORG= make image/build
$ ORG= make image/push
$ make cluster/prepare
```Then review `deploy/operator.yaml` and update the image url to your preferred registry and deploy it:
```sh
$ 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:
```sh
$ oc login -u system:admin
$ make cluster/prepare
$ make code/run
```## Installing Gitea
Create a custom resource of type `Gitea` with the following spec:
```yaml
apiVersion: integreatly.org/v1alpha1
kind: Gitea
metadata:
name: example-gitea
spec:
hostname:
```An example can be found under `deploy/cr.yaml`
Start the installation with
```
$ oc create -f
```## Release
Update operator version files:
* Bump [operator version](version/version.go)
```Version = ""```
* Bump [makefile TAG](Makefile)
```TAG=```
* Bump [operator image version](deploy/operator.yaml)
```image: quay.io/integreatly/gitea-operator:v```Commit changes and open pull request.
When the PR is accepted, create a new release tag:
```git tag v && git push upstream v```