feat!: add gitea chart v8 changes

BREAKING CHANGE: MySQL and MariaDB subcharts are removed.
This commit is contained in:
Michael Kriese 2023-04-04 15:47:07 +02:00
commit 00c8377d5b
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
19 changed files with 211 additions and 218 deletions

View file

@ -12,6 +12,6 @@ tests:
- hasDocuments:
count: 1
- containsDocument:
kind: StatefulSet
kind: StatefulSet
apiVersion: apps/v1
name: forgejo-unittests

View file

@ -0,0 +1,40 @@
suite: Statefulset template (SSH configuration)
release:
name: gitea-unittests
namespace: testing
templates:
- templates/gitea/statefulset.yaml
- templates/gitea/config.yaml
tests:
- it: supports defining SSH log level for root based image
template: templates/gitea/statefulset.yaml
set:
image.rootless: false
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: SSH_LOG_LEVEL
value: "INFO"
- it: supports overriding SSH log level
template: templates/gitea/statefulset.yaml
set:
image.rootless: false
gitea.ssh.logLevel: "DEBUG"
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: SSH_LOG_LEVEL
value: "DEBUG"
- it: skips SSH_LOG_LEVEL for rootless image
template: templates/gitea/statefulset.yaml
set:
image.rootless: true
gitea.ssh.logLevel: "DEBUG" # explicitly defining a non-standard level here
asserts:
- notContains:
path: spec.template.spec.containers[0].env
any: true
content:
name: SSH_LOG_LEVEL