Commit graph

321 commits

Author SHA1 Message Date
Michael Kriese
b9f2d84359 fix(deps): update helm release postgresql to v13.2.14 (#212)
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/212
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-committed-by: Michael Kriese <michael.kriese@gmx.de>
2023-11-21 08:29:03 +00:00
Michael Kriese
ba218804d5 fix(deps): update helm release memcached to v6.7.0 (#215)
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/215
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-committed-by: Michael Kriese <michael.kriese@gmx.de>
2023-11-21 08:18:41 +00:00
Renovate Bot
23847eba1c chore(deps): update redis-cluster docker tag to v9.1.3 (#561)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-11-14 00:15:26 +00:00
Michael Kriese
e93552cdbd fix(deps): update helm release memcached to v6.6.8 2023-11-09 00:07:58 +00:00
Renovate Bot
82dc077673 chore(deps): update redis-cluster docker tag to v9.1.1 (#555)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-11-06 00:17:45 +00:00
Renovate Bot
f3abf73ebc chore(deps): update redis-cluster docker tag to v9.0.13 (#547)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-10-24 00:07:01 +00:00
Michael Kriese
544e05a222 fix(deps): update helm release memcached to v6.6.7 2023-10-17 00:07:59 +00:00
Renovate Bot
3707755373 chore(deps): update redis-cluster docker tag to v9.0.12 (#511)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-10-16 00:05:56 +00:00
Renovate Bot
074def2acc chore(deps): update postgresql docker tag to v12.12.10 (#521)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-10-15 01:15:46 +00:00
Michael Kriese
ccb100015a fix(deps): update helm release postgresql to v13.1.5 2023-10-15 00:10:59 +00:00
pat-s
a249229ccf Downgrade postgresql-ha to 11.9.4 (#541)
As 11.9.8 included (by mistake) a major version bump from 15 -> 16

https://github.com/bitnami/charts/issues/19596

Co-authored-by: justusbunsi <justusbunsi@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/541
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.com>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-10-14 16:30:51 +00:00
Renovate Bot
0cc8c6d558 chore(deps): update postgresql-ha docker tag to v11.9.8 (#507)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-10-14 00:14:31 +00:00
Michael Kriese
e0c321323e fix(deps): update helm release memcached to v6.6.6 2023-10-14 00:08:02 +00:00
Michael Kriese
b87ae9244d fix(deps): update helm release postgresql to v13.1.4 2023-10-13 00:08:10 +00:00
Michael Kriese
e35f428d13 feat(deps): update helm release postgresql to v13 (#202)
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/202
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-committed-by: Michael Kriese <michael.kriese@gmx.de>
2023-10-11 04:29:33 +00:00
Michael Kriese
f943cddd94 fix(deps): update helm release memcached to v6.6.4 (#204)
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/204
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-committed-by: Michael Kriese <michael.kriese@gmx.de>
2023-10-10 19:43:54 +00:00
Michael Kriese
282f91b442 fix(deps): update helm release postgresql to v12.12.10 2023-10-09 12:03:34 +00:00
Michael Kriese
2e9e144568 fix(deps): update helm release postgresql to v12.12.9 2023-09-27 00:06:25 +00:00
Michael Kriese
8563c76b05 fix(deps): update helm release postgresql to v12.12.7 2023-09-26 00:06:20 +00:00
Renovate Bot
74cec11931 chore(deps): update postgresql docker tag to v12.12.5 (#506)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-09-24 17:55:21 +00:00
Michael Kriese
82e7d2e6b7 fix(deps): update helm release postgresql to v12.12.5 2023-09-24 00:06:33 +00:00
Michael Kriese
51072f96fb fix(deps): update helm release postgresql to v12.12.4 2023-09-21 00:06:35 +00:00
Michael Kriese
7710189dd4 fix(deps): update helm release postgresql to v12.11.1 (#186)
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/186
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-committed-by: Michael Kriese <michael.kriese@gmx.de>
2023-09-14 13:52:49 +00:00
Renovate Bot
779563141d chore(deps): update redis-cluster docker tag to v9 (#504)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [redis-cluster](https://github.com/bitnami/charts) | major | `8.8.2` -> `9.0.4` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi43OS4xIiwidXBkYXRlZEluVmVyIjoiMzYuODkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/504
Reviewed-by: pat-s <pat-s@noreply.gitea.com>
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-09-13 07:48:55 +00:00
Michael Kriese
6e31dde198 fix(deps): update helm release memcached to v6.6.2 2023-09-13 00:07:30 +00:00
Michael Kriese
b7aa7f0659 fix(deps): update helm release memcached to v6.6.1 2023-09-08 00:14:24 +00:00
Renovate Bot
38776e2b51 chore(deps): update postgresql docker tag to v12.10.1 (#505)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [postgresql](https://github.com/bitnami/charts) | patch | `12.10.0` -> `12.10.1` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi43OS4xIiwidXBkYXRlZEluVmVyIjoiMzYuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/505
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-09-07 02:23:12 +00:00
Renovate Bot
74fef7e4c6 chore(deps): update redis-cluster docker tag to v8.8.2 (#503)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [redis-cluster](https://github.com/bitnami/charts) | minor | `8.6.9` -> `8.8.2` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi43OS4xIiwidXBkYXRlZEluVmVyIjoiMzYuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/503
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-09-06 03:29:23 +00:00
pat-s
30000677d7
update chart.lock 2023-08-31 19:12:49 +02:00
Michael Kriese
bf09a1af36 fix(deps): update helm release postgresql to v12.10.0 (#181)
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/181
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-committed-by: Michael Kriese <michael.kriese@gmx.de>
2023-08-29 04:51:25 +00:00
Michael Kriese
7eb7edcfd0 fix(deps): update helm release postgresql to v12.9.0 (#174)
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/174
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-committed-by: Michael Kriese <michael.kriese@gmx.de>
2023-08-25 08:26:28 +00:00
Michael Kriese
f19d22c664 fix(deps): update helm release memcached to v6.6.0 (#180)
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/180
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Co-committed-by: Michael Kriese <michael.kriese@gmx.de>
2023-08-25 08:23:00 +00:00
Michael Kriese
0fbb2329f8 fix(deps): update helm release memcached to v6.5.9 2023-08-22 00:07:18 +00:00
Michael Kriese
c2e51defc0 fix(deps): update helm release memcached to v6.5.8 2023-08-18 00:07:22 +00:00
Michael Kriese
f1ce20e593 fix(deps): update helm release memcached to v6.5.7 2023-08-17 00:08:54 +00:00
Michael Kriese
19d4916943 fix(deps): update helm release postgresql to v12.7.1 (#169)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/169
2023-07-27 06:16:19 +00:00
Michael Kriese
fd2810afab fix(deps): update helm release memcached to v6.5.6 2023-07-27 00:12:36 +00:00
Michael Kriese
e172610698 fix(deps): update helm release postgresql to v12.6.9 2023-07-25 00:07:46 +00:00
Michael Kriese
5b7cf738f4 fix(deps): update helm release postgresql to v12.6.8 (#164)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/164
2023-07-21 06:37:27 +00:00
Michael Kriese
57d4de9535 fix(deps): update helm release postgresql to v12.6.7 2023-07-20 00:07:28 +00:00
pat-s
ede76d4b68
update helm deps and add makefile rule 2023-07-17 21:26:45 +02:00
pat-s
8e27bb9bae [Breaking] Add HA-support; switch to Deployment (#437)
# Changes

A big shoutout to @luhahn for all his work in #205 which served as the base for this PR.

## Documentation

- [x] After thinking for some time about it, I still prefer the distinct option (as started in #350), i.e. having a standalone "HA" doc under `docs/ha-setup.md` to not have a very long README (which is already quite long).
      Most of the information below should go into it with more details and explanations behind all of the individual components.

## Chart deps

~~- Adds `meilisearch` as a chart dependency for a HA-ready issue indexer. Only works with >= Gitea 1.20~~
~~- Adds `redis` as a chart dependency for a HA-ready session and queue store.~~
- Adds `redis-cluster` as a chart dependency for a HA-ready session and queue store (alternative to `redis`). Only works with >= Gitea 1.19.2.
- Removes `memcached` instead of `redis-cluster`
- Add `postgresql-ha` as default DB dep in favor of `postgres`

## Adds smart HA chart logic

The goal is to set smart config values that result in a HA-ready Gitea deployment if `replicaCount` > 1.

- If `replicaCount` > 1,
  - `gitea.config.session.PROVIDER` is automatically set to `redis-cluster`
  - `gitea.config.indexer.REPO_INDEXER_ENABLED` is automatically set to `false` unless the value is `elasticsearch` or `meilisearch`
  - `redis-cluster` is used for `[queue]` and `[cache]` and `[session]`mode or not

Configuration of external instances of `meilisearch` and `minio` are documented in a new markdown doc.

## Deployment vs Statefulset

Given all the discussions about this lately (#428), I think we could use both.
In the end, we do not have the requirement for a sequential pod scale up/scale down as it would happen in statefulsets.
On the other side, we do not have actual stateless pods as we are attaching a RWX to the deployment.
Yet I think because we do not have a leader-election requirement, spawning the pods as a deployment makes "Rolling Updates" easier and also signals users that there is no "leader election" logic and each pod can just be "destroyed" at anytime without causing interruption.

Hence I think we should be able to switch from a statefulset to a deployment, even in the single-replica case.

This change also brought up a templating/linting issue: the definition of `.Values.gitea.config.server.SSH_LISTEN_PORT` in `ssh-svc.yaml` just "luckily" worked so far due to naming-related lint processing. Due to the change from "statefulset" to "deployment", the processing queue changed and caused a failure complaining about `config.server.SSH_LISTEN_PORT` not being defined yet.
The only way I could see to fix this was to "properly" define the value in `values.yaml` instead of conditionally definining it in `helpers.tpl`. Maybe there's a better way?

## Chart PVC Creation

I've adapted the automated PVC creation from another chart to be able to provide the `storageClassName` as I couldn't get dynamic provisioning for EFS going with the current implementation.
In addition the naming and approach within the Gitea chart for PV creation is a bit unusual and aligning it might be beneficial.

A semi-unrelated change which will result in a breaking change for existing users but this PR includes a lot of breaking changes already, so including another one might not make it much worse...

- New `persistence.mount`: whether to mount an existing PVC (via `persistence.existingClaim`
- New `persistence.create`: whether to create a new PVC

## Testing

As this PR does a lot of things, we need proper testing.
The helm chart can be installed from the Git branch via `helm-git` as follows:

```
helm repo add gitea-charts git+https://gitea.com/gitea/helm-chart@/?ref=deployment
helm install gitea --version 0.0.0
```
It is **highly recommended** to test the chart in a dedicated namespace.

I've tested this myself with both `redis` and `redis-cluster` and it seemed to work fine.
I just did some basic operations though and we should do more niche testing before merging.

Examplary `values.yml` for testing (only needs a valid RWX storage class):

<details>

<summary>values.yaml</summary>

```yml
image:
  tag: "dev"
  PullPolicy: "Always"
  rootless: true

replicaCount: 2

persistence:
  enabled: true
  accessModes:
    - ReadWriteMany
  storageClass: FIXME

redis-cluster:
  enabled: false
  global:
    redis:
      password: gitea

gitea:
  config:
    indexer:
      ISSUE_INDEXER_ENABLED: true
      REPO_INDEXER_ENABLED: false
```
</details>

## Preferred setup

The preferred HA setup with respect to performance and stability might currently be as follows:

- Repos: RWX (e.g. EFS or Azurefiles NFS)
- Issue indexer: Meilisearch (HA)
- Session and cache: Redis Cluster (HA)
- Attachments/Avatars: Minio (HA)

This will result in a ~ 10-pod HA setup overall.
All pods have very low resource requests.

fix #98

Co-authored-by: pat-s <pat-s@noreply.gitea.io>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/437
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-07-17 19:09:42 +00:00
Michael Kriese
f9bfe6b22d fix(deps): update helm release postgresql to v12.6.6 2023-07-17 00:07:35 +00:00
Michael Kriese
f105e0b8a6 fix(deps): update helm release memcached to v6.5.5 2023-07-16 00:07:17 +00:00
Michael Kriese
9febe33951 fix(deps): update helm release postgresql to v12.6.0 (#157)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/157
2023-07-03 13:01:28 +00:00
Michael Kriese
459375b870 fix(deps): update helm release memcached to v6.5.4 2023-06-28 00:07:06 +00:00
Michael Kriese
b9079ceda6 fix(deps): update helm release postgresql to v12.5.8 2023-06-20 00:07:05 +00:00
Michael Kriese
843a790239 fix(deps): update helm release memcached to v6.5.3 2023-06-17 00:07:06 +00:00
Michael Kriese
cf27151e1a fix(deps): update helm release postgresql to v12.5.7 2023-06-13 00:06:04 +00:00
Michael Kriese
683aae50a5 fix(deps): update helm release postgresql to v12.5.6 2023-05-31 00:07:12 +00:00
Michael Kriese
ceb78bbf3d fix(deps): update helm release postgresql to v12.5.5 2023-05-24 00:07:06 +00:00
Michael Kriese
e2b926153e fix(deps): update helm release postgresql to v12.5.4 2023-05-23 00:07:11 +00:00
Michael Kriese
fc8edfc4eb fix(deps): update helm release memcached to v6.5.2 2023-05-22 00:07:21 +00:00
Michael Kriese
549cba59a6 fix(deps): update helm release postgresql to v12.5.2 2023-05-17 00:14:43 +00:00
Michael Kriese
57a5171970 fix(deps): update helm release postgresql to v12.5.1 (#139)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/139
2023-05-16 04:30:21 +00:00
Michael Kriese
ac6f84079e fix(deps): update helm release memcached to v6.5.1 (#140)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/140
2023-05-16 04:26:23 +00:00
Michael Kriese
742a21b55e fix(deps): update helm release postgresql to v12.4.3 2023-05-10 06:03:36 +00:00
Michael Kriese
6cdddc6414 fix(deps): update helm release memcached to v6.4.2 2023-05-10 00:07:04 +00:00
Michael Kriese
39778770d3 fix(deps): update helm release memcached to v6.4.1 (#131)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/131
2023-05-02 09:32:58 +00:00
pat-s
5876a9e7fc Update Gitea to 1.19.2 and bump chart deps (#442)
No substantial changes in chart deps.

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/442
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-04-30 11:05:33 +08:00
Michael Kriese
4416cc666b fix(deps): update helm release postgresql to v12.4.2 2023-04-30 00:07:12 +00:00
Michael Kriese
f6465619c0 fix(deps): update helm release postgresql to v12.4.1 (#127)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/127
2023-04-28 10:44:11 +00:00
Michael Kriese
43a9b4a677 fix(deps): update helm release postgresql to v12.2.8 2023-04-17 09:42:30 +00:00
Michael Kriese
00c8377d5b
feat!: add gitea chart v8 changes
BREAKING CHANGE: MySQL and MariaDB subcharts are removed.
2023-04-04 17:00:16 +02:00
Michael Kriese
57bbebe3b6 fix(deps): update helm release postgresql to v12.2.7 2023-04-04 00:07:06 +00:00
Michael Kriese
727f0592f9 fix(deps): update helm release mysql to v9.7.1 2023-04-03 06:51:44 +00:00
Michael Kriese
730c4b179a fix(deps): update helm release memcached to v6.3.14 2023-04-03 00:07:06 +00:00
Michael Kriese
92e10d10c0 fix(deps): update helm release mariadb to v11.5.6 2023-04-02 00:07:06 +00:00
pat-s
25500d7ca2 Ignore Chart.lock for formatters/linters (#424)
This might hopefully help with the formatting issues around `Chart.lock`.

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/424
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.io>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-04-01 19:18:17 +08:00
Michael Kriese
ee1a9fc2ee fix(deps): update helm release mysql to v9.7.0 (#114)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/114
2023-03-30 04:45:31 +00:00
pat-s
87c59b2fca Format all files with prettier VSCode plugin and add yamllint in CI (#413)
@justusbunsi to end my formatting mess... ;)

I am not fully sure myself about the linebreaks in `values.yaml` but I don't think there's an easy way to change that behavior.

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/413
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.io>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-03-29 05:18:23 +08:00
pat-s
a0ba3c9bef Bump memcached to add arm64 support (#422)
And allow overriding the `image` section so users could possible also use other image tags.

fix #285

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/422
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.io>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-03-29 05:11:33 +08:00
pat-s
ae9a71ea11 Remove mysql and mariadb chart deps (#417)
As discussed in Discord.

Supersedes #412 and #407.

**⚠️ BREAKING**

Users depending on the built-in MySQL or MariaDB chart have to switch to an self-managed database, or Postgres

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/417
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.io>
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
Reviewed-by: yardenshoham <yardenshoham@noreply.gitea.io>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-03-29 01:02:04 +08:00
pat-s
5cb0802b7b [Breaking] Bump postgres chart to latest release (#391)
See discussion in #387

Upgrade notes to Chart v11.x and Postgres 14.x: https://docs.bitnami.com/kubernetes/infrastructure/postgresql/administration/upgrade/

The current version in Gitea is using `11.11.0-debian-10-r62` from 2021-04.

Bumping the chart to the latest (v12.x) would use the image `15.2.0-debian-11-r14` which would be a jump from postgres 11 to postgres 15. There are no specific notes for the v12.x chart release, hence we might be able to just go to 12.x directly.

There have been some param renamings which I've reflected in the README.

**⚠️ BREAKING**

Users have to migrate their Postgres DB by e.g. restoring a previously created database dump into a clean installation.

Co-authored-by: justusbunsi <sk.bunsenbrenner@gmail.com>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/391
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io>
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.io>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2023-03-28 01:12:29 +08:00
Michael Kriese
c2cf0a2b47 fix(deps): update mariadb docker tag to v11.5.5 2023-03-24 00:07:11 +00:00
Michael Kriese
3a706fa107 fix(deps): update postgresql docker tag to v12.2.6 2023-03-23 00:07:29 +00:00
Michael Kriese
a2a9ee6430 fix(deps): update mysql docker tag to v9.6.0 (#101)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/101
2023-03-21 11:23:23 +00:00
Michael Kriese
e8fece23dc feat: use binamiy oci charts (#109)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/109
2023-03-21 10:19:39 +00:00
Michael Kriese
6e6f64f7bf fix(deps): update helm release postgresql to v12.2.5 2023-03-21 00:08:20 +00:00
Michael Kriese
02a17be0db fix(deps): update helm release memcached to v6.3.13 2023-03-20 00:08:29 +00:00
Michael Kriese
6a24d2bea6 fix(deps): update helm release mariadb to v11.5.4 2023-03-19 00:08:20 +00:00
Michael Kriese
261eb46582 fix(deps): update helm release postgresql to v12.2.3 2023-03-16 00:08:13 +00:00
Michael Kriese
5c5b801290 fix(deps): update helm release memcached to v6.3.12 2023-03-15 00:08:34 +00:00
Michael Kriese
47c8f5205e fix(deps): update helm release memcached to v6.3.11 2023-03-10 00:10:33 +00:00
Michael Kriese
e6f23348e7 fix(deps): update helm release mariadb to v11.5.3 2023-03-08 00:08:42 +00:00
Michael Kriese
dbdcec1a63 fix(deps): update helm release mysql to v9.5.2 2023-03-07 11:38:24 +00:00
Michael Kriese
888cdc75af fix(deps): update helm release mariadb to v11.5.2 2023-03-07 00:09:54 +00:00
Michael Kriese
c52d0947e2 fix(deps): update helm release postgresql to v12.2.2 (#73)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/73
2023-03-03 12:15:14 +00:00
Michael Kriese
e76fa022dd fix(deps): update helm release mysql to v9.5.1 (#78)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/78
2023-03-03 12:07:16 +00:00
Michael Kriese
8d9c4c0ecd fix(deps): update helm release mariadb to v11.5.1 (#77)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/77
2023-03-03 08:21:35 +00:00
Michael Kriese
98b9a6ae84 fix(deps): update helm release memcached to v6.3.9 2023-03-03 00:11:15 +00:00
Michael Kriese
789127a4c6 fix(deps): update helm release memcached to v6.3.8 2023-03-02 00:13:08 +00:00
justusbunsi
18100cca11 Fixup Chart.lock inconsistency (#406)
Introduced with b6d275c4f5

Signed-off-by: justusbunsi <sk.bunsenbrenner@gmail.com>

Co-authored-by: justusbunsi <sk.bunsenbrenner@gmail.com>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/406
Reviewed-by: pat-s <pat-s@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: justusbunsi <justusbunsi@noreply.gitea.io>
Co-committed-by: justusbunsi <justusbunsi@noreply.gitea.io>
2023-02-26 22:42:43 +08:00
Michael Kriese
4179b94eb3 fix(deps): update helm release mysql to v9.4.9 2023-02-20 00:07:00 +00:00
Michael Kriese
349a1313d9 fix(deps): update helm release memcached to v6.3.7 2023-02-19 00:06:54 +00:00
Michael Kriese
e29850b387 fix(deps): update helm release mariadb to v11.4.7 2023-02-18 00:07:17 +00:00
Michael Kriese
e7b5130c3e fix(deps): update helm release memcached to v6.3.6 2023-02-11 00:07:29 +00:00
Michael Kriese
b7a5f2df54 fix(deps): update helm release postgresql to v12.1.15 2023-02-10 00:07:13 +00:00
Michael Kriese
786e81a307 fix(deps): update helm release mariadb to v11.4.6 2023-02-08 00:07:05 +00:00
Michael Kriese
48b4054143 fix(deps): update helm release postgresql to v12.1.14 2023-02-03 00:08:40 +00:00
Michael Kriese
859259b57c fix(deps): update helm release postgresql to v12.1.13 2023-02-02 00:07:59 +00:00
Michael Kriese
84d37a2523 fix(deps): update helm release mariadb to v11.4.5 2023-02-01 00:08:16 +00:00
Michael Kriese
e0afad2808 fix(deps): update helm release postgresql to v12.1.12 2023-01-31 00:07:02 +00:00
Michael Kriese
d1326fc8fb fix(deps): update helm release postgresql to v12.1.11 2023-01-28 00:15:02 +00:00
Michael Kriese
95c3bb914a fix(deps): update helm release mysql to v9.4.8 2023-01-27 00:07:01 +00:00
Michael Kriese
bb037ad64c fix(deps): update helm release mysql to v9.4.7 2023-01-23 00:12:22 +00:00
Michael Kriese
bc49c4a85d fix(deps): update helm release mysql to v9.4.6 2023-01-19 11:57:44 +00:00
Michael Kriese
27df0bd0c3 fix(deps): update helm release mariadb to v11.4.4 (#40)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/40
2023-01-19 11:51:10 +00:00
Michael Kriese
a6eb2a2fc5 fix(deps): update helm release postgresql to v12.1.9 (#14)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/14
2023-01-19 11:44:39 +00:00
Michael Kriese
de337adbe3 fix(deps): update helm release memcached to v6.3.5 (#33)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [memcached](https://github.com/bitnami/charts/tree/master/bitnami/memcached) ([source](https://github.com/bitnami/charts)) | patch | `6.3.3` -> `6.3.5` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC45Ny4xIiwidXBkYXRlZEluVmVyIjoiMzQuOTcuNSJ9-->

Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/33
2023-01-12 08:07:53 +00:00
Michael Kriese
e4af9c28af fix(deps): update helm release memcached to v6.3.3 (#10)
Co-authored-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/10
2023-01-04 14:24:29 +00:00
Michael Kriese
e1c74fbc59
fix: use github cdn for deps 2023-01-03 23:24:22 +01:00
Michael Kriese
a0bcc12c84
feat: update postgresql to v12 2023-01-03 22:34:25 +01:00
Michael Kriese
b1a501d315
feat: update mysql to v9 2023-01-03 22:27:00 +01:00
Michael Kriese
fa3d9e9500
feat: update mariadb to v11 2023-01-03 22:10:09 +01:00
Michael Kriese
6a332543ba
fix(memcached): use offical chart bitnami url 2023-01-03 22:03:32 +01:00
Michael Kriese
573a9a0c75
feat: update memcached to v6 2023-01-03 20:50:51 +01:00
Michael Kriese
0c9b547989
fix: use full bitnami archive 2023-01-03 20:48:19 +01:00
justusbunsi
0172a59889 Properly lock chart dependencies (#326)
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/326
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: luhahn <luhahn@noreply.gitea.io>
Co-authored-by: justusbunsi <justusbunsi@noreply.gitea.io>
Co-committed-by: justusbunsi <justusbunsi@noreply.gitea.io>
2022-06-15 15:37:25 +08:00
luhahn
5e0cfed9be Integrate NOVUM-RGI chart into the official helm chart. (#7)
Fix ssh port settings

Remove blank line from LICENSE file

add check for admin user

set PROTOCOL default to http

Add Konrad Lother as Maintainer

Update readme with generic values

make app.ini generic

- app.ini is now configurable via dictionary in values.yaml
- database and server configuration is autogenerated if not defined
- http and ssh services now use gitea config settings for targetPort
- add default security value INSTALL_LOCK = true
- clean up builtin cache settings

bump gitea version

Add values and Remove vscode TOC comments

- values enablePushCreateOrg and enablePushCreateUser have been added to repository settings

fix naming order of license and maintainers

Multiple improvements for the chart:

- add terminationGracePeriodSeconds to shutdown the statefulset gracefully on error
- add guard for loadbalancer settings in ssh service
- use mysql from bitnami, since they update the version much more frequent (old mysql only uses mysql ~6)
- init container now also provisions mysql and external database correctly

Fix PVC mounting issues for longhorn storageClass

Add examples to readme

Fix port setting for ssh

Fix and operator for newer helm versions

update values to support most configuration gitea offers

Replace Readme

update license file

Update helpers with dependencies, update NOTES.txt

update Chart.yaml with dependencies

Requirements.yaml removed, since this is deprecated and moved to Chart.yaml

Remove now unused dependencies and deployments

- init is no longer used since databases are initialized
  on original charts and managed with dependency
- ingress.yaml moved to templates/gitea
- deployment.yaml no longer used and replaced with templates/gitea/statefulset.yaml
- memcached also handled with helm dependency and initialized in original chart

Add initial test for gitea helm chart

Rework templates for helm chart.

- app.ini configurable via config
- admin user and ldap settings configurable via config
- using statefulset to handle pvc
- update helpers for new dependencies

remove helm build artifacts since they are not needed in this repository

Co-authored-by: Lucas Hahn <lucas.hahn@novum-rgi.de>
Co-authored-by: Konrad Lother <konrad.lother@novum-rgi.de>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/7
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
2020-08-23 17:56:55 +00:00
Charlie Drage
9061f0d470 Initial commit
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2019-12-12 13:38:31 -05:00