Commit Graph
818 Commits
Author SHA1 Message Date
CSRBot d28e732311 chore(deps): update dependency losisin/helm-values-schema-json to v2.6.1
Helm / helm-lint (push) Successful in 9s
Bash / shellcheck (push) Successful in 28s
Helm / helm-unittest (push) Successful in 23s
Bash / shellcheck (pull_request) Successful in 8s
Commit Linter / check-and-test (pull_request) Successful in 8s
Bash / bash-unittest (pull_request) Successful in 35s
Helm / helm-lint (pull_request) Successful in 11s
Helm / helm-unittest (pull_request) Successful in 39s
Bash / bash-unittest (push) Successful in 24s
2026-12-05 20:07:45 +00:00
volker.raschek a512d64db0 ci(renovate): enable configMigration
Bash / bash-unittest (push) Successful in 19s
Bash / shellcheck (push) Successful in 26s
changelog / changelog (push) Successful in 13s
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 18s
2026-12-05 18:54:50 +01:00
volker.raschek 7dfd1bbf82 ci(renovate): remove presets, use complete own rules
Helm / helm-lint (push) Successful in 12s
Bash / bash-unittest (push) Successful in 20s
Bash / shellcheck (push) Successful in 26s
changelog / changelog (push) Successful in 12s
Helm / helm-unittest (push) Successful in 17s
2026-12-05 18:52:20 +01:00
volker.raschek dfce04cab1 ci(renovate): update customManagers and packgeRules
Bash / shellcheck (push) Successful in 10s
Bash / bash-unittest (push) Successful in 37s
Helm / helm-unittest (push) Successful in 21s
changelog / changelog (push) Successful in 23s
Helm / helm-lint (push) Successful in 9s
2026-12-05 18:46:51 +01:00
volker.raschekandCopilot 6cc089ba9c test(bash): handle expected env diff
Bash / shellcheck (push) Successful in 9s
changelog / changelog (push) Successful in 16s
Bash / bash-unittest (push) Successful in 36s
Helm / helm-lint (push) Successful in 10s
Helm / helm-unittest (push) Successful in 31s
Bats now honors errexit inside functions run through run. Treat diff status 1 as expected environment changes so the helper returns the script status.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 23:19:13 +01:00
volker.raschekandCopilot a5579c167e [Close #1077] fix!: protect secrets and enforce config precedence
Bash / bash-unittest (push) Successful in 19s
Bash / shellcheck (push) Successful in 26s
changelog / changelog (push) Successful in 12s
Helm / helm-lint (push) Successful in 16s
Helm / helm-unittest (push) Successful in 16s
Markdown linter / markdown-lint (push) Successful in 15s
Markdown linter / markdown-link-checker (push) Successful in 53s
Equivalent environment variable encodings could overwrite existing
secrets or make configuration precedence depend on environment order.

BREAKING CHANGE: Duplicate preset environment variables targeting the
same setting now cause initialization to fail. Remove duplicates.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 22:37:36 +01:00
volker.raschekandCopilot ccb53fca3f [Close #1077] fix: preserve config key casing
Gitea requires case-sensitive setting names and escaped punctuation
to interpret configuration keys correctly.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 22:18:43 +01:00
volker.raschek be7e739f67 ci(renovate): renable dependency dashboard
Helm / helm-lint (push) Successful in 12s
Bash / bash-unittest (push) Successful in 17s
Bash / shellcheck (push) Successful in 20s
changelog / changelog (push) Successful in 14s
Helm / helm-unittest (push) Successful in 17s
2026-12-04 21:49:35 +01:00
volker.raschekandCopilot ffd2ba1d77 [Close #1117] feat: support rebuilding app.ini
Bash / bash-unittest (push) Successful in 18s
Bash / shellcheck (push) Successful in 21s
changelog / changelog (push) Successful in 12s
Helm / helm-lint (push) Successful in 14s
Helm / helm-unittest (push) Successful in 19s
Markdown linter / markdown-lint (push) Successful in 14s
Markdown linter / markdown-link-checker (push) Successful in 51s
Allow stale settings to be removed on startup while preserving existing Gitea secret keys.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 21:41:59 +01:00
volker.raschek 1779e3b525 ci(renovate): enable platformAutomerge
Bash / bash-unittest (push) Successful in 19s
Bash / shellcheck (push) Successful in 19s
changelog / changelog (push) Successful in 15s
Helm / helm-lint (push) Successful in 13s
Helm / helm-unittest (push) Successful in 30s
2026-12-04 21:02:30 +01:00
volker.raschek 3e0d8ac8ee fix(renovate): group packageRules
Bash / bash-unittest (push) Successful in 16s
Bash / shellcheck (push) Successful in 22s
changelog / changelog (push) Successful in 17s
Helm / helm-lint (push) Successful in 6s
Helm / helm-unittest (push) Successful in 33s
2026-12-04 20:58:49 +01:00
volker.raschek 46767730c4 chore(renovate): remove packageRule for unused alpine/helm
changelog / changelog (push) Successful in 11s
Helm / helm-unittest (push) Successful in 16s
Bash / bash-unittest (push) Successful in 16s
Bash / shellcheck (push) Successful in 19s
Helm / helm-lint (push) Successful in 13s
2026-12-04 20:48:56 +01:00
volker.raschek 778bdc949d chore(deps): update action actions/checkout to v7.0.1
Bash / shellcheck (push) Successful in 7s
Helm / helm-lint (push) Successful in 7s
Helm / helm-unittest (push) Successful in 31s
changelog / changelog (push) Successful in 12s
Bash / bash-unittest (push) Successful in 29s
2026-12-04 20:47:52 +01:00
volker.raschekandCopilot 37ab116b3e fix(ci): mark prerelease tags in Gitea releases
Bash / shellcheck (push) Successful in 8s
Helm / helm-unittest (push) Successful in 17s
changelog / changelog (push) Successful in 13s
Helm / helm-lint (push) Successful in 7s
Bash / bash-unittest (push) Successful in 30s
Match Artifact Hub prerelease detection so preview versions are not published as stable releases.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 20:22:32 +01:00
volker.raschekandCopilot c7279364d1 ci(release): remove inactive Gitea registry steps
Bash / bash-unittest (push) Successful in 16s
Bash / shellcheck (push) Successful in 20s
changelog / changelog (push) Successful in 14s
Helm / helm-lint (push) Successful in 12s
Helm / helm-unittest (push) Successful in 16s
Remove disabled publishing steps to keep the release workflow focused on active registries.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 20:14:08 +01:00
volker.raschekandCopilot 721e17bdb8 fix(ci): authenticate Helm to Docker Hub
Restore the explicit Helm registry login to address unauthorized chart pushes, and log out after publishing.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 20:13:24 +01:00
volker.raschek ea95db78e4 ci(release): disable gitea upload
Bash / shellcheck (push) Successful in 7s
changelog / changelog (push) Successful in 13s
Bash / bash-unittest (push) Successful in 28s
Helm / helm-lint (push) Successful in 6s
Helm / helm-unittest (push) Successful in 30s
2026-12-04 19:56:29 +01:00
volker.raschekandCopilot 39d5e628f7 ci(release): install Docker CLI through APT
Bash / shellcheck (push) Successful in 7s
changelog / changelog (push) Successful in 12s
Helm / helm-lint (push) Successful in 7s
Bash / bash-unittest (push) Successful in 28s
Helm / helm-unittest (push) Successful in 17s
Avoid firewall restrictions that prevent the Docker setup action
from working on the Gitea runner.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 19:34:22 +01:00
volker.raschekandCopilot 27b0110ef2 ci(release): set up Docker and Python
Bash / shellcheck (push) Successful in 7s
changelog / changelog (push) Successful in 12s
Bash / bash-unittest (push) Successful in 29s
Helm / helm-lint (push) Successful in 6s
Helm / helm-unittest (push) Successful in 30s
Provide the tools needed for registry login and AWS CLI installation
on the Gitea runner.

Co-authored-by: Copilot <copilot@github.com>
2026-12-04 19:20:23 +01:00
volker.raschek fbcc3f9cf1 fix(ci): add helm repo valkey
Bash / bash-unittest (push) Successful in 22s
Bash / shellcheck (push) Successful in 23s
changelog / changelog (push) Successful in 12s
Helm / helm-lint (push) Successful in 12s
Helm / helm-unittest (push) Successful in 16s
2026-12-04 19:13:02 +01:00
volker.raschek 797542da41 feat(ci): sign helm chart and oci artifact
Bash / bash-unittest (push) Successful in 30s
Helm / helm-lint (push) Successful in 10s
Bash / shellcheck (push) Successful in 7s
changelog / changelog (push) Successful in 14s
Helm / helm-unittest (push) Successful in 32s
The following PR updates the release workflow. It signs the Helm charts and the OCI artifact.
2026-12-04 19:07:40 +01:00
Ceddaerrix ddd0290b55 feat: adding 'tpl' to ingress annotation values (#1124)
### Description of the change

Adding templating support into ingress annotations so the following can be used (hence avoiding YAML anchors):

```
    ingress:
      className: "{{ .Values.global.ingress.className }}"
      annotations:
        cert-manager.io/issuer: "{{ .Values.global.issuer.name }}"
```

### Benefits

- avoiding use of YAML anchors and related limitations
- Possibility to inject a value into an annotation even from an umbrella chart

### Checklist

<!-- [Place an '[X]' (no spaces) in all applicable fields. Please remove unrelated fields.] -->

- [x] Helm templating unittests are added (required when changing anything in `templates` folder)

Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/1124
Reviewed-by: Markus Pesch <1641+volker.raschek@noreply.gitea.com>
Co-authored-by: Ceddaerrix <48319+ceddaerrix@noreply.gitea.com>
2026-12-04 17:08:33 +00:00
volker.raschek 304f50981d fix(renovate): enable automerge for lockFileMaintenance
Bash / bash-unittest (push) Successful in 28s
changelog / changelog (push) Successful in 12s
Bash / shellcheck (push) Successful in 6s
Helm / helm-lint (push) Successful in 12s
Helm / helm-unittest (push) Successful in 16s
2026-12-04 17:25:50 +01:00
Renovate Bot bc23031bd8 chore(deps): update dependency markdownlint-cli to v0.50.1 (#1125)
Bash / shellcheck (push) Successful in 8s
changelog / changelog (push) Successful in 13s
Helm / helm-lint (push) Successful in 6s
Bash / bash-unittest (push) Successful in 30s
Helm / helm-unittest (push) Successful in 16s
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) | [`0.50.0` → `0.50.1`](https://renovatebot.com/diffs/npm/markdownlint-cli/0.50.0/0.50.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/markdownlint-cli/0.50.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/markdownlint-cli/0.50.0/0.50.1?slim=true) |

---

### Release Notes

<details>
<summary>igorshubovych/markdownlint-cli (markdownlint-cli)</summary>

### [`v0.50.1`](https://github.com/igorshubovych/markdownlint-cli/releases/tag/v0.50.1)

[Compare Source](https://github.com/igorshubovych/markdownlint-cli/compare/v0.50.0...v0.50.1)

- Update `markdownlint` dependency to `0.42.2`
  - Improve `MD042`/`MD052`/`MD054`
  - Handle null prototype configuration objects
  - Update dependencies
- Fix uncommon exit code and `.markdownlintignore` behaviors
- Update all dependencies via `Dependabot`

</details>

---

### Configuration

đź“… **Schedule**: (UTC)

- Branch creation
  - Only on Sunday and Saturday (`* * * * 0,6`)
- Automerge
  - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`)

🚦 **Automerge**: Enabled.

â™» **Rebasing**: Whenever PR is behind base branch, 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 [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNTcuOSIsInVwZGF0ZWRJblZlciI6IjQ0LjI1Ny45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJraW5kL2RlcGVuZGVuY3kiXX0=-->

Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/1125
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-11-28 19:27:24 +00:00
Renovate Bot c623890d6f chore(deps): update workflow dependencies (minor & patch) (#1123)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-11-22 00:06:45 +00:00
Renovate Bot bc875056bd chore(deps): update workflow dependencies (minor & patch) (#1121)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-11-16 00:07:32 +00:00
Renovate Bot 79178a18d0 chore(deps): update node.js to v26.13.0 (#1120)
Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/1120
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-11-14 15:26:28 +00:00
Renovate Bot b43d59ba88 chore(deps): update helm release valkey to v0.12.1 (#1119)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-11-08 00:05:42 +00:00
Renovate Bot e067bccd57 chore(deps): update workflow dependencies (minor & patch) (#1118)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-11-01 00:05:05 +00:00
Renovate Bot 2b5edb77cf chore(deps): update workflow dependencies (minor & patch) (#1114)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-10-27 00:08:49 +00:00
Renovate Bot deedb0f1b3 chore(deps): update helm release valkey to v0.12.0 (#1115)
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
2026-10-25 00:06:25 +00:00
silverwindandClaude 0031a20a40 fix(renovate): repair the Gitea release manager
The appVersion manager from 475df2f captures `currentVersion`, which
Renovate rejects, so it has opened no PRs here since 2026-07-21
(https://gitea.com/gitea/helm-gitea/issues/1098). Its `^...$` anchors
never match either, Renovate runs these patterns without the multiline
flag, and Gitea releases live in go-gitea/gitea on GitHub, not
gitea/gitea.

The workflow version markers move to the trailing form the shared preset
already picks up, so the local copy of that manager goes, as does
`helpers:pinGitHubActionDigests`, which the preset extends too.
HELM_UNITTEST_VERSION was never picked up because of its `#renovate:`
spelling.

Co-Authored-By: Claude (Opus 5.5) <noreply@anthropic.com>
2026-10-21 05:43:45 +02:00
volker.raschekandCopilot 6d68d44894 feat(cloudnativePG): support topologySpreadConstraints
Bash / shellcheck (push) Successful in 7s
Bash / bash-unittest (push) Successful in 25s
changelog / changelog (push) Successful in 15s
Helm / helm-lint (push) Successful in 13s
Helm / helm-unittest (push) Successful in 20s
Markdown linter / markdown-lint (push) Successful in 18s
Markdown linter / markdown-link-checker (push) Successful in 52s
A HA `Cluster` is only actually highly available if its instances end up in different failure domains. Pod
anti-affinity alone cannot express that: it only keeps the instances off the same node, not off the same zone,
and `cloudnativePG.affinity` has no way to encode a skew budget. Without `topologySpreadConstraints` a three
instance cluster can legitimately be scheduled into a single availability zone, where a zone outage takes down
the primary and both replicas at once.

Both `affinity` and `topologySpreadConstraints` are rendered only when they are set. The CloudNativePG API
declares them as `omitempty`, so an empty `{}` or `[]` in the manifest would show up as a permanent diff against
the state the operator writes back.

Tolerations deliberately do not get a dedicated value. CloudNativePG has no `spec.tolerations`, it nests them
below `spec.affinity.tolerations`, so they are configured through `cloudnativePG.affinity` like `nodeSelector`
and the anti-affinity settings. A separate top-level value would only have to be folded back into the same place
and would silently conflict with a tolerations list set via `cloudnativePG.affinity`.

Co-authored-by: Copilot <copilot@github.com>
2026-10-04 00:39:08 +02:00
volker.raschekandCopilot 27db0d26b0 feat!: remove the postgresql sub-chart
With `cloudnativePG` in place, the bundled Bitnami `postgresql` sub-chart is the second in-chart way to run a
database, and the worse one. It is a single, non-HA instance without failover, backup or managed major-version
upgrades, and it ships images that Bitnami no longer distributes freely. Keeping it around means maintaining two
code paths for the same job, including the mutual-exclusion assertion between both dependencies and a second set
of DNS, credential and image helpers.

Removing it leaves exactly two supported choices: a CloudNativePG `Cluster` rendered by this chart, or an
external database configured via `gitea.config.database`. Both scale from a single instance to a HA setup -
`cloudnativePG.instances=1` covers the use case the `postgresql` sub-chart served - so nothing is lost besides
the duplication.

BREAKING CHANGE: The `postgresql` sub-chart and all `postgresql.*` values have been removed. There is no
in-place migration path: dump the database of the old `postgresql` release with `pg_dump`, remove the
`postgresql` values, deploy the chart with `cloudnativePG.enabled=true` and restore the dump. Alternatively
point `gitea.config.database` at an externally managed database. Setting `postgresql` now fails the release with
a pointer to the changelog.

Co-authored-by: Copilot <copilot@github.com>
2026-10-04 00:39:05 +02:00
volker.raschekandCopilot 1b82a15b7f feat!: replace postgresql-ha with CloudNativePG
The bundled `postgresql-ha` sub-chart was the only HA-ready database option, but it pinned us to a Bitnami chart
whose images are no longer freely distributed, and it bundled repmgr and pgpool into the release. Operating a
Postgres cluster through a Helm release also means the chart has to reimplement failover, backup and upgrade
orchestration that a dedicated operator already solves.

CloudNativePG is the de-facto standard operator for Postgres on Kubernetes and handles instance management,
streaming replication, switchover and rolling upgrades itself. The operator is deliberately *not* part of this
chart: cluster-scoped CRDs and controllers do not belong into an application release and would conflict with an
operator that is already installed. The chart only renders the namespaced `Cluster` resource, so the operator can
be managed independently.

Because the operator cannot be assumed to be present, `cloudnativePG.enabled` defaults to `false`. Existing users
of `postgresql` or an external database are therefore unaffected.

Credentials follow the chart-wide `secrets.*` convention. Only the password is read from a Secret, because
CloudNativePG requires `bootstrap.initdb.database` and `bootstrap.initdb.owner` as literals in the `Cluster` spec
and cannot resolve them from a Secret. The password is injected into the `init-app-ini` container as
`GITEA__database__PASSWD` instead of being written into the generated `app.ini`.

BREAKING CHANGE: The `postgresql-ha` sub-chart and all `postgresql-ha.*` values have been removed. There is no
in-place migration path between the two deployments: dump the database of the old `postgresql-ha` release with
`pg_dump`, remove the `postgresql-ha` values, deploy the chart with `cloudnativePG.enabled=true` and restore the
dump. Setting `postgresql-ha` now fails the release with a pointer to the changelog.

Co-authored-by: Copilot <copilot@github.com>
2026-10-04 00:18:34 +02:00
volker.raschekandCopilot eeacda2a25 test: align the file names of the helm unit tests with the chart conventions
The chart conventions demand camelCase file names, forbid short names like `svc` and require the unit tests to
mirror the template structure. The unit tests followed none of that consistently. Four casings existed side by
side - camelCase (extraInitContainers.yaml), kebab-case (checksum-annotations.yaml), a snake and kebab mix
(init_directory_structure.sh-rootless.yaml) and all caps (HA.yaml) - so there was no pattern to copy when
adding a suite, which is how the inconsistency kept growing.

Three groups of problems are fixed:

- svc-configuration.yaml used exactly the short name the conventions forbid for files and keys.
- Several file names repeated their own directory, for example deployment/deployment-additional-config.yaml and
  metric-secret/metrics-secret-servicemonitor-disabled.yaml, which names the subject three times. The directory
  already carries that information, so the file name now only carries the scenario. The default scenario of a
  template is named basics.yaml.
- Four suites lived in a directory of a template they do not assert on. They were filed under deployment/
  because the deployment is rendered as a side effect, not because it is the subject:

      deployment/deprecations.yaml                -> deprecation/deployment.yaml
      deployment/inline-config.yaml               -> config/inlineConfig.yaml
      deployment/storage-class-configuration.yaml -> persistentVolumeClaim/storageClass.yaml
      deployment/svc-configuration.yaml           -> service/configuration.yaml

  storage-class-configuration.yaml is the clearest case: a persistentVolumeClaim directory already existed next
  to it. The suite titles of the two suites whose subject changed are adjusted accordingly.

The Makefile passed `--file unittests/helm/values-conflicting-checks.yaml`, but that file does not exist in the
tree. `helm unittest` ignores a missing path without a warning, so the flag has been dead for an unknown amount
of time while still suggesting the checks run. It is removed; the `unittests/helm/**/*.yaml` glob would pick
the file up anyway if it ever returns.

The naming rule is written down in the copilot instructions, together with the constraint that the glob matches
only a single directory level, so a suite can never be placed directly in unittests/helm/.

All 49 suites and 267 tests still pass.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 22:19:39 +02:00
volker.raschekandCopilot fef4190a74 test: normalize the suite titles of the helm unit tests
Bash / bash-unittest (push) Successful in 14s
Bash / shellcheck (push) Successful in 20s
changelog / changelog (push) Successful in 16s
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 32s
Markdown linter / markdown-lint (push) Successful in 15s
Markdown linter / markdown-link-checker (push) Successful in 56s
The contributor guidelines never defined how a `suite` title has to look, only how an `it` title has to look.
Without a rule five competing schemes grew side by side: `config template | cache config`, `deployment
template (probes)`, `ServiceMonitor template (basic)`, `Test Gateway API httpRoute.yaml` and `Dependency checks
| Customization integrity | valkey`. 24 of the 49 titles started with a lowercase letter, which contradicts the
sentence rule that already applies to the test titles.

More than cosmetics, the missing rule produced three concrete defects:

- `deployment template` was used by both deployment-additional-config.yaml and extraInitContainers.yaml, and
  `Init template` by both init_directory_structure.sh.yaml and its rootless counterpart. `helm unittest`
  identifies a failing suite by its title, so a failure in either file printed the same header and the report
  did not say which file to open.
- deployment/inline-config.yaml was titled `config template`, although it lives in the deployment directory and
  asserts on secret_inlineConfig.yaml. It read like a sixth member of the `config template | ...` group.
- persistentVolumeClaim.yaml was titled `PVC template`, using exactly the short name the chart conventions
  forbid for files and keys.

All suites now follow `Test <subject> <scenario>`, for example `Test deployment probes` or `Test gateway API
httpRoute`. The subject is the template under test, the scenario is what distinguishes the suite from its
siblings, so every title is unique and sorts next to its related suites. The `Test ` prefix of the Gateway API,
ingress and route suites is kept, because it is the only part of the old schemes that already read as a
sentence; the redundant `.yaml` suffix and the `tests` suffix of the storage class suite are dropped.

The rule is written down in the Unit Tests section of the copilot instructions, so the next suite does not have
to guess which of the five schemes was meant.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 21:21:46 +02:00
volker.raschekandCopilot bb3b59f1ee test: normalize the titles of the helm unit tests
Bash / shellcheck (push) Successful in 8s
Bash / bash-unittest (push) Successful in 24s
changelog / changelog (push) Successful in 16s
Helm / helm-lint (push) Successful in 18s
Helm / helm-unittest (push) Successful in 35s
The contributor guidelines require that the title of a unit test is "a short sentence starting with a capital
letter and ending without a period". Only 30 of the 269 titles followed that rule. The remaining ones were
lowercase verb phrases ("renders a deployment"), which made the test output read inconsistently depending on
which suite was running, and made it impossible to tell a convention violation from an intentional style.

All titles are now imperative, capitalized and unquoted-safe:

  renders a deployment                                 -> Render a Deployment
  should not render when gatewayAPI.enabled is false   -> Skip rendering when gatewayAPI.enabled is false
  skips gpg volume spec                                -> Skip the gpg volume spec

The bracketed prefixes of the dependency checks and of the server section suite are kept, because they group
the tests by the chart they assert on. Only the sentence behind the prefix was rewritten.

Beyond the pure capitalization three classes of titles needed real rewording:

- The titles in image-configuration.yaml named a subject instead of a scenario ("default values", "tag
  override", "digest and global registry"). They now describe what is rendered.
- init_directory_structure.sh-rootless.yaml carried "it does not chown /data ...", which rendered as
  "it it does not chown" in the test output.
- The "should" prefix in the Gateway API and route suites added no information once the title is a sentence.

The title of the GIT_GC_REPOS test lost its embedded double quotes. The title was previously an unquoted YAML
scalar, so the quotes were literal characters; quoting the title turned them into a parse error. The value is
unambiguous without them.

Three byte-identical tests asserting pgpool.adminPassword existed in customization-integrity-postgresql-ha.yaml
- same template, same assertion, same expected value. They were a copy-paste artifact and shared one title, so
two of them are removed. No coverage is lost, which is why the test count drops from 269 to 267.

No snapshot files are tracked and no suite uses matchSnapshot, so retitling cannot invalidate stored snapshots.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 21:17:18 +02:00
volker.raschekandCopilot 7c18b18a47 docs: drop the emphasis from the app.ini heading
Bash / shellcheck (push) Successful in 8s
changelog / changelog (push) Successful in 18s
Helm / helm-lint (push) Successful in 15s
Helm / helm-unittest (push) Successful in 41s
Bash / bash-unittest (push) Successful in 25s
Markdown linter / markdown-lint (push) Successful in 16s
Markdown linter / markdown-link-checker (push) Successful in 1m4s
markdown-link-check derives the anchor from the raw heading text, where the underscores of the emphasis survive
slugification as `additional-_appini_-settings`. Gitea and GitHub slugify the rendered heading instead, so the
anchor really is `additional-appini-settings` and the table of contents entry was correct all along - the checker
simply could not see it.

The entry appeared with the last regeneration of the README, which is why the job started failing now even though
the heading has been around for much longer. Removing the emphasis makes both slugifiers agree without changing the
anchor, so existing deep links keep working.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 20:59:40 +02:00
volker.raschekandCopilot 6821e792b2 ci: check the shell scripts with shellcheck
Bash / bash-unittest (push) Successful in 14s
Bash / shellcheck (push) Successful in 20s
changelog / changelog (push) Successful in 15s
Helm / helm-lint (push) Successful in 16s
Helm / helm-unittest (push) Successful in 32s
The chart ships shell scripts into the init containers, where a quoting or exit code bug surfaces as a broken
deployment rather than as a failing test. The bats suite covers the behaviour of config_environment.sh, but not the
classes of defects a static analyser catches, so shellcheck runs alongside it now.

The action is pinned to a commit sha, as the other actions of this workflow already are. Note that the tag is named
`2.0.0` and not `v2.0.0`, so the version comment deviates from the usual `# v<version>` form.

Submodules are deliberately not checked out. The action scans the whole working directory, and bats-core alone would
contribute several hundred files that are not ours to fix.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 20:31:12 +02:00
volker.raschekandCopilot 9f7064724e fix(scripts): resolve the shellcheck findings of config_environment.sh
The script masked the exit codes of every command substitution it ran. `local` and `export` are commands
themselves, so their own return value overwrites the one of the substitution and `set -e` never sees a failure.
This was not only cosmetic: when `gitea generate secret` failed, the init container happily continued and exported
an empty `INTERNAL_TOKEN`, `SECRET_KEY`, `JWT_SECRET` and `LFS_JWT_SECRET`. Declaration and assignment are now
separated, which lets `set -e` abort instead of writing an app.ini with empty secrets. (SC2155)

`env2ini::log` passed its argument as the format string of `printf`. Settings names and section names are read from
user supplied configuration and are logged verbatim, so a value containing a `%` directive made `printf` consume
non-existing arguments. The message is passed as data now. `%b` instead of `%s` keeps the `\n` escapes of the
existing call sites working. (SC2059)

The remaining changes quote the file name variables and add `-r` to the `read` of the `find -print0` loop, where an
unquoted path or a backslash in a mount point would have been mangled. (SC2086, SC2162)

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 20:31:02 +02:00
volker.raschekandCopilot 49a221008a chore: remove the leftovers of the act runner deployment
changelog / changelog (push) Successful in 16s
Bash / bash-unittest (push) Successful in 27s
Helm / helm-unittest (push) Successful in 1m12s
Helm / helm-lint (push) Successful in 10s
Markdown linter / markdown-link-checker (push) Failing after 37s
Markdown linter / markdown-lint (push) Successful in 15s
`scripts/act_runner/token.sh` bootstrapped the registration token of an act runner by patching a Kubernetes Secret
with kubectl. The deployment it belonged to is long gone, and no glob picked the file up either: the chart only ships
`scripts/init-containers/config/*.sh` and `scripts/init-containers/init/*.sh`, so the script was not even part of the
packaged chart.

The label helpers `gitea.labels.actRunner` and `gitea.selectorLabels.actRunner` were orphaned the same way. The former
is referenced by no template at all and the latter only by the former, which left them as a closed loop without an
entry point.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 19:59:53 +02:00
volker.raschekandCopilot 93a576ca11 feat!: remove extraInitVolumeMounts in favour of per init container volumeMounts
Every chart-managed init container already exposes its own `volumeMounts` through the linked configuration block, so
`extraInitVolumeMounts` added a second way to express the same thing. It was also the only mount setting left outside
of `deployment`, which made the mount configuration harder to discover than it needed to be.

Worse, the name promised more than it delivered. The value was only injected into the four linked init containers and
never reached an init container added through `deployment.initContainers[].container`, even though that is exactly
what a reader would expect from a setting called "extra init volume mounts". The documented use case does not need
the fan-out either: the sample `initPreScript` copies the Postgres client certificate onto the `data` volume, so a
single mount on `deployment.initDirectories.volumeMounts` is enough and the later containers pick it up via /data.

With the value gone the `gitea.init-additional-mounts` helper has no purpose left and is removed together with its
four call sites, which now rely on the already existing `volumeMounts` block of the respective init container.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 19:30:50 +02:00
volker.raschekandCopilot c96e5d4132 feat!: remove the deprecated extraVolumeMounts value
`extraVolumeMounts` was deprecated in 6.0.0 in favour of separate mounts for the init phase and the runtime container,
but it was never removed. It had turned into a trap: both helpers treated it as a fallback that silently disappeared as
soon as `extraInitVolumeMounts` respectively `deployment.gitea.volumeMounts` contained a single entry, so adding one
new mount could unmount everything configured through the old value. The documented successor
`extraContainerVolumeMounts` had meanwhile been removed itself, which left the deprecation note pointing at a value
that already fails the deprecation check.

Removing it makes the mount configuration explicit: `extraInitVolumeMounts` for the init containers,
`deployment.gitea.volumeMounts` for the Gitea container, and both when a volume is needed in both places.

The GPG init container used `extraVolumeMounts` directly instead of the shared helper and therefore ignored
`extraInitVolumeMounts`, unlike the three other init containers. It now uses `gitea.init-additional-mounts` as well.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 19:14:20 +02:00
volker.raschekandCopilot ccd470557f docs(values): drop the orphaned deprecation note for the extra init containers
The `preExtraInitContainers` and `postExtraInitContainers` values were removed together with the migration to
`deployment.initContainers` and are covered by a `fail` guard in templates/deprecation.yaml. Only the `## @deprecated`
annotation was left behind, pointing at values that no longer appear anywhere in this file. A reader scanning the
Init section had no way to tell that the note described a completed migration rather than a value still waiting to be
migrated.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 19:02:17 +02:00
volker.raschek c93a96c23d fix(values): sort resource keys alphabetially
Bash / bash-unittest (push) Successful in 15s
changelog / changelog (push) Successful in 21s
Helm / helm-lint (push) Successful in 9s
Markdown linter / markdown-link-checker (push) Successful in 38s
Markdown linter / markdown-lint (push) Successful in 16s
Helm / helm-unittest (push) Successful in 1m13s
2026-10-03 18:45:49 +02:00
volker.raschekandCopilot 61d04282c8 feat(ingress)!: rename className to ingressClassName
The value only ever populated the `spec.ingressClassName` field of the Ingress resource, so the shortened name was a
needless deviation from the Kubernetes API. `ingress.className` carried a `DEPRECATED` marker since #679, but that
marker was a leftover: the rename to the canonical name was proposed there, rejected during review and the follow-up
commits only removed the half-merged template fallback. The marker stayed behind for a year while the value remained
the one and only way to set the Ingress class, which made the documentation actively misleading.

The deprecation guard uses `hasKey` instead of a truthiness check on purpose. The previous chart default was an empty
string, so vendored values files tend to carry `ingress.className: ""` verbatim. A truthiness check would silently
ignore those and leave users wondering why their Ingress class is no longer applied.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 18:43:05 +02:00
volker.raschekandCopilot 4d1440331d feat!: remove the helm test connection Pod
Bash / bash-unittest (push) Successful in 18s
changelog / changelog (push) Successful in 21s
Helm / helm-lint (push) Successful in 9s
Markdown linter / markdown-lint (push) Successful in 14s
Helm / helm-unittest (push) Successful in 1m11s
Markdown linter / markdown-link-checker (push) Successful in 43s
The chart shipped a `helm test` hook Pod that ran `wget` against the HTTP Service. It only proved that the
Service resolves and answers on the configured port, which the readiness probe already covers, so it carried
no information the release did not have anyway. In exchange it pulled `busybox:latest` into clusters -- an
unpinned, mutable tag in a chart that otherwise pins every image digest -- and it kept a Pod spec alive that
had to track every change to the security context and hostUsers helpers.

Removing the template also removes the `test.*` values that only existed to configure it, so the parameter
table in the README was regenerated accordingly.

A guard in `deprecation.yaml` catches leftover `test` values instead of silently ignoring them. Its message
deviates from the surrounding guards on purpose: there is no replacement value to point at, so it states that
the feature is gone rather than suggesting a migration target.

BREAKING CHANGE: `helm test <release>` no longer executes any test for this chart, and the values
`test.enabled`, `test.image.name` and `test.image.tag` have been removed. Installations that still set them
will fail with a descriptive error until the keys are dropped, unless `checkDeprecation` is set to false.

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 17:46:34 +02:00
volker.raschekandCopilot 64c2f1a9cc fix(secrets): render config and init secrets as data to prune removed keys
Both Secrets rendered their payload via `stringData`. That field is write-only: the API server decodes it into
`data` and does not persist `stringData` itself. Helm's three-way merge therefore generates a deletion patch
that targets `stringData`, while the live object only ever carries `data` - so a key that disappears from the
rendered manifest is never pruned and survives every upgrade.

Unlike the inline-config Secret fixed in #1110, the keys here are driven by the files in
`scripts/init-containers/**` rather than by user values, so the bug is latent rather than acute. It still
bites whenever a script is removed or renamed in the chart: the stale key stays in the Secret and keeps being
mounted into the init containers.

The two inline scripts of the init Secret were YAML block scalars and had to be moved into `define` blocks to
be pipeable through `b64enc`. The bodies are dedented by four columns accordingly, and `trimAll "\n"`
reproduces the chomping semantics of the previous `|-` scalars. Rendering was diffed against the previous
revision for defaults, rootless, initPreScript, GPG, admin, LDAP, OAuth and all valkey variants - the decoded
payloads are byte-identical, so no init script changes behaviour.

Unit tests now read the payloads from `data.*` with `decodeBase64: true` and assert that `stringData` no
longer exists, to catch a regression early.

See: https://gitea.com/gitea/helm-gitea/issues/1109
See: https://gitea.com/gitea/helm-gitea/pulls/1110

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 17:34:48 +02:00
volker.raschekandCopilot 6025d82333 docs(copilot): require Secret payloads to be rendered as data
Bash / bash-unittest (push) Successful in 15s
changelog / changelog (push) Successful in 20s
Helm / helm-lint (push) Successful in 8s
Markdown linter / markdown-link-checker (push) Successful in 42s
Markdown linter / markdown-lint (push) Successful in 14s
Helm / helm-unittest (push) Successful in 1m14s
The inline-config Secret rendered its payload via `stringData`. That field is write-only: the API server
decodes it into `data` and does not persist `stringData` itself. As a result Helm's three-way merge could
never prune a key that was removed from the values, because the generated patch targets `stringData` while
the live object only has `data`. Stale sections therefore survived every upgrade and the init container kept
writing them back into `app.ini` on each start.

To prevent this class of bug from being reintroduced, document the rule explicitly: render Secret payloads as
base64 `data`, and assert Secret content in unit tests via `data.*` with `decodeBase64: true` plus a
`notExists` assertion for `stringData`.

See: https://gitea.com/gitea/helm-gitea/issues/1109
See: https://gitea.com/gitea/helm-gitea/pulls/1110

Co-authored-by: Copilot <copilot@github.com>
2026-10-03 17:19:00 +02:00