Migrate from bitnamicharts/valkey (and bitnamicharts/valkey-cluster) to the official Valkey Helm chart (https://valkey.io/valkey-helm, v0.10.0). Changes: - Remove valkey-cluster dependency and all related values, templates, and unit tests - Update valkey dependency to use https://valkey.io/valkey-helm - Adapt _helpers.tpl (valkey.dns, valkey.port, valkey.servicename) to the new chart's service naming and value structure - Update values.yaml to match the new chart's configuration schema (auth.aclUsers instead of global.valkey.password, service.port instead of primary.service.ports.valkey, dataStorage instead of primary.persistence) - Update all affected unit tests - Update README documentation BREAKING CHANGE: valkey-cluster support has been removed. Users previously relying on valkey-cluster must migrate to standalone valkey or an external Redis-compatible service. The valkey values structure has changed: `valkey.global.valkey.password` is now `valkey.auth.aclUsers.default.password`, and `valkey.primary.service.ports.valkey` is now `valkey.service.port`. --------- Co-authored-by: rishub <183523+rishub@noreply.gitea.com> Co-authored-by: rishub <itsrishub@gmail.com> Reviewed-on: https://gitea.com/gitea/helm-gitea/pulls/1097 Co-authored-by: Markus Pesch <markus.pesch@cryptic.systems>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
suite: config template | session config
|
|
release:
|
|
name: gitea-unittests
|
|
namespace: testing
|
|
tests:
|
|
- it: "session is configured correctly for valkey"
|
|
template: templates/gitea/config.yaml
|
|
set:
|
|
valkey:
|
|
enabled: true
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.session
|
|
value: |-
|
|
PROVIDER=redis
|
|
PROVIDER_CONFIG=redis://:changeme@gitea-unittests-valkey.testing.svc.cluster.local:6379/0?pool_size=100&idle_timeout=180s&
|
|
|
|
- it: "session is configured correctly for 'memory' when valkey is disabled"
|
|
template: templates/gitea/config.yaml
|
|
set:
|
|
valkey:
|
|
enabled: false
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.session
|
|
value: |-
|
|
PROVIDER=memory
|
|
PROVIDER_CONFIG=
|
|
|
|
- it: "session can be customized when valkey is disabled"
|
|
template: templates/gitea/config.yaml
|
|
set:
|
|
valkey:
|
|
enabled: false
|
|
gitea.config.session.PROVIDER: custom-provider
|
|
gitea.config.session.PROVIDER_CONFIG: custom-provider-config
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: stringData.session
|
|
value: |-
|
|
PROVIDER=custom-provider
|
|
PROVIDER_CONFIG=custom-provider-config
|