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>
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
suite: Dependency checks | Customization integrity | valkey
|
|
release:
|
|
name: gitea-unittests
|
|
namespace: testing
|
|
set:
|
|
valkey:
|
|
enabled: true
|
|
auth:
|
|
enabled: true
|
|
aclUsers:
|
|
default:
|
|
permissions: "~* &* +@all"
|
|
password: gitea-password
|
|
tests:
|
|
- it: "[valkey] valkey.auth.aclUsers.default.password is applied as expected"
|
|
template: charts/valkey/templates/secret.yaml
|
|
asserts:
|
|
- documentIndex: 0
|
|
equal:
|
|
path: data.default-password
|
|
value: "Z2l0ZWEtcGFzc3dvcmQ="
|
|
- it: "[valkey] renders the referenced service"
|
|
template: charts/valkey/templates/service.yaml
|
|
asserts:
|
|
- containsDocument:
|
|
kind: Service
|
|
apiVersion: v1
|
|
name: gitea-unittests-valkey
|
|
- documentIndex: 0
|
|
contains:
|
|
path: spec.ports
|
|
content:
|
|
name: tcp
|
|
port: 6379
|
|
targetPort: tcp
|
|
protocol: TCP
|
|
- it: "[gitea] waits for valkey to be up and running"
|
|
template: templates/gitea/init.yaml
|
|
asserts:
|
|
- documentIndex: 0
|
|
matchRegex:
|
|
path: stringData["configure_gitea.sh"]
|
|
pattern: nc -vz -w2 gitea-unittests-valkey.testing.svc.cluster.local 6379
|
|
- it: "[gitea] waits for valkey to be up and running with custom cluster domain"
|
|
set:
|
|
clusterDomain: my-special-cluster.local
|
|
template: templates/gitea/init.yaml
|
|
asserts:
|
|
- documentIndex: 0
|
|
matchRegex:
|
|
path: stringData["configure_gitea.sh"]
|
|
pattern: nc -vz -w2 gitea-unittests-valkey.testing.svc.my-special-cluster.local 6379
|