[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
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>
This commit is contained in:
7 files changed
+91
-5
No files matched your search
@@ -214,6 +214,13 @@ INSTALL_LOCK is always set to true, since we want to configure Gitea with this h
|
||||
|
||||
_All default settings are made directly in the generated `app.ini`, not in the Values._
|
||||
|
||||
#### Rebuilding app.ini
|
||||
|
||||
By default, removed settings remain in an existing `app.ini`.
|
||||
Set `deployment.initAppIni.config.rebuild` to `true` to rebuild it on startup from the current configuration sources.
|
||||
The existing `security.SECRET_KEY`, `security.INTERNAL_TOKEN`, `oauth2.JWT_SECRET`, and `server.LFS_JWT_SECRET` are preserved.
|
||||
All other settings that are present only in `app.ini`, including manually managed secrets, are removed.
|
||||
|
||||
#### Database defaults
|
||||
|
||||
If a builtIn database is enabled the database configuration is set automatically.
|
||||
@@ -1052,6 +1059,7 @@ To comply with the Gitea helm chart definition of the digest parameter, a "custo
|
||||
| `deployment.initDirectories.resources` | Compute Resources required by the initDirectories container. Defaults to `initContainers.resources`. Cannot be updated. | `nil` |
|
||||
| `deployment.initDirectories.securityContext` | Security context of the initDirectories container. Defaults to `deployment.gitea.securityContext`. | `{}` |
|
||||
| `deployment.initDirectories.volumeMounts` | Additional volume mounts. | `[]` |
|
||||
| `deployment.initAppIni.config.rebuild` | Rebuild app.ini on startup, preserving Gitea secret keys but removing unmanaged settings. | `false` |
|
||||
| `deployment.initAppIni.env` | Additional environment variables to pass to the init container. | `[]` |
|
||||
| `deployment.initAppIni.envFrom` | List of environment variables mounted from configMaps or secrets for the initAppIni container. | `[]` |
|
||||
| `deployment.initAppIni.image.registry` | image registry, e.g. gcr.io,docker.io. | `docker.gitea.com` |
|
||||
|
||||
Reference in new issue
Block a user