{"id":13450701,"url":"https://github.com/integr8ly/gitea-operator","last_synced_at":"2025-03-23T16:32:20.788Z","repository":{"id":33668019,"uuid":"155547862","full_name":"integr8ly/gitea-operator","owner":"integr8ly","description":"An Operator that installs Gitea","archived":true,"fork":false,"pushed_at":"2022-04-21T14:35:14.000Z","size":31602,"stargazers_count":27,"open_issues_count":4,"forks_count":13,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-10-28T17:39:26.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/integr8ly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-31T11:41:26.000Z","updated_at":"2024-05-02T22:06:29.000Z","dependencies_parsed_at":"2022-08-07T23:00:08.916Z","dependency_job_id":null,"html_url":"https://github.com/integr8ly/gitea-operator","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr8ly%2Fgitea-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr8ly%2Fgitea-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr8ly%2Fgitea-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/integr8ly%2Fgitea-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/integr8ly","download_url":"https://codeload.github.com/integr8ly/gitea-operator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245131014,"owners_count":20565757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:00:37.430Z","updated_at":"2025-03-23T16:32:17.636Z","avatar_url":"https://github.com/integr8ly.png","language":"Go","funding_links":[],"categories":["Repository is obsolete","Archived","Packages"],"sub_categories":["Awesome Operators in the Wild","Packages","For internal use"],"readme":"# Gitea Operator\n\n[![Build Status](https://travis-ci.org/integr8ly/gitea-operator.svg?branch=master)](https://travis-ci.org/integr8ly/gitea-operator)\n\n|                 | Project Info  |\n| --------------- | ------------- |\n| License:        | Apache License, Version 2.0                      |\n| IRC             | [#integreatly](https://webchat.freenode.net/?channels=integreatly) channel in the [freenode](http://freenode.net/) network. |\n\nAn Operator that installs Gitea. Installation is performed by creating a custom resource of kind `Gitea`. You can uninstall Gitea by removing this resource.\nThe Operator will also watch all Gitea resources and reinstall them if they are deleted.\n\n## Installing the Operator\n\nFirst 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.\n\n```sh\n$ oc login -u system:admin\n$ ORG=\u003cregistry url\u003e make image/build\n$ ORG=\u003cregistry url\u003e make image/push\n$ make cluster/prepare\n```\n\nThen review `deploy/operator.yaml` and update the image url to your preferred registry and deploy it:\n\n```sh\n$ make cluster/deploy\n```\n\nVerify the Operator is running by opening the `gitea` namespace. You should see a Pod with the name `gitea-operator`.\n\n## Running the Operator locally\n\nInstead 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:\n\n```sh\n$ oc login -u system:admin\n$ make cluster/prepare\n$ make code/run\n```\n\n## Installing Gitea\n\nCreate a custom resource of type `Gitea` with the following spec:\n\n```yaml\napiVersion: integreatly.org/v1alpha1\nkind: Gitea\nmetadata:\n  name: example-gitea\nspec:\n  hostname: \u003cgitea.apps.CLUSTER_URL\u003e\n```\n\nAn example can be found under `deploy/cr.yaml`\n\nStart the installation with\n\n```\n$ oc create -f \u003cpath to your CR\u003e\n```\n\n## Release\n\nUpdate operator version files:\n\n* Bump [operator version](version/version.go) \n```Version = \"\u003cversion\u003e\"```\n* Bump [makefile TAG](Makefile)\n```TAG=\u003cversion\u003e```\n* Bump [operator image version](deploy/operator.yaml)\n```image: quay.io/integreatly/gitea-operator:v\u003cversion\u003e```\n\nCommit changes and open pull request.\n\nWhen the PR is accepted, create a new release tag:\n\n```git tag v\u003cversion\u003e \u0026\u0026 git push upstream v\u003cversion\u003e```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegr8ly%2Fgitea-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintegr8ly%2Fgitea-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintegr8ly%2Fgitea-operator/lists"}