feat(gitea): replace Bitnami PostgreSQL and Redis with CNPG and Valkey#102
Open
adamancini wants to merge 1 commit intomainfrom
Open
feat(gitea): replace Bitnami PostgreSQL and Redis with CNPG and Valkey#102adamancini wants to merge 1 commit intomainfrom
adamancini wants to merge 1 commit intomainfrom
Conversation
jmboby
reviewed
Feb 10, 2026
jmboby
reviewed
Feb 10, 2026
jmboby
reviewed
Feb 13, 2026
Remove all four Bitnami subchart dependencies (postgresql, postgresql-ha, redis-cluster, redis) from the Gitea Helm chart and replace them with: - PostgreSQL via CloudNativePG operator with an embedded Cluster CR - Valkey (Redis-compatible) via the official valkey-io/valkey-helm subchart Additional changes: - Add CNPG operator and cert-manager as Embedded Cluster extensions - Update EC version to 2.13.3+k8s-1.33, ingress-nginx to 4.14.1 - Replace bitnami/kubectl with registry.k8s.io/kubectl:v1.33.0 - Add KOTS config for Valkey cache settings - Default internal_postgres_enabled to true - Fix deprecated helm.sh/hook: test-success annotation to test - Fix Makefile .SHELLFLAGS for GNU make compatibility - Fix Makefile repo URL quoting for CI environments - Add CI workflow with lint-and-template and helm-install-test jobs - Add Python smoke tests for Gitea HTTP, PostgreSQL, and Valkey - Add Makefile test targets (test-lint, test-install, test-smoke, etc.) - Bump chart version to 11.0.0 Resolves #97
f137b95 to
fcc9da6
Compare
xavpaice
reviewed
Feb 16, 2026
| {{- end -}} | ||
| {{- /* redis queue */ -}} | ||
| {{- /* redis/valkey queue */ -}} | ||
| {{- if or ((index .Values "redis-cluster").enabled) ((index .Values "redis").enabled) -}} |
Member
There was a problem hiding this comment.
if we've removed redis, should we remove this stanza?
Member
|
@adamancini I found this issue with the release:
# gitea-chart.yaml
#Line 50 | Error: unexpected "\\" in operand
#Error unable-to-render.
HOST: "redis://:repl{{ ConfigOption \"valkey_password\" }}@gitea-valkey:6379/0?pool_size=100&idle_timeout=180s&"Naturally this is causing the Admin Console to fail spinning up:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
valkey-io/valkey-helmchart as a subchartgitea.config.database.*andgitea.config.cache/session/queue.*bitnami/kubectlimage withregistry.k8s.io/kubectl:v1.33.0internal_postgres_enabledtotrue(aligns with Valkey which already defaults true)helm.sh/hook: test-successannotation totestgitea-ci.yml) with lint-and-template and helm-install-test jobstest-lint,test-install-operators,test-install,test-smoke,test-all)Motivation
Bitnami is transitioning to a paid Broadcom subscription model after September 2025. Rather than forking/modifying the upstream Gitea chart templates, this disables the Bitnami subcharts and wires Gitea to operator-managed PostgreSQL and Valkey. The Gitea chart's
_helpers.tplalready supports this — when subchart conditions are false, explicitgitea.config.*values take precedence.External database support
The chart supports both embedded (CNPG) and external PostgreSQL. When
postgres.embedded.enabled: false, no CNPG Cluster CR is created and Gitea connects to whatevergitea.config.database.HOSTpoints to. The KOTS config exposespostgres_hostas a user-editable field for this purpose.Test plan
helm dependency update charts/gitearesolves Valkey, no Bitnamihelm lint charts/giteapasseshelm template gitea charts/gitea --debugrenders CNPG Cluster CR, Valkey subchart, and correct Gitea connection stringsgitea.config.database.HOST,cache.HOST,session.PROVIDER_CONFIG,queue.CONN_STRall point to correct servicesmake package-and-updatepackages chart as gitea-11.0.0.tgzregistry.k8s.io/kubectl:v1.33.0resolves correctly (v prefix required)Review feedback addressed
vprefix (v1.33.0not1.33.0) — fixed in 84f19d6helm install, users can pre-install the operator or point to an external database.Resolves #97