Skip to content

Commit

Permalink
charts: replace aiven redis with valkey
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Feb 27, 2025
1 parent c77a751 commit 75a567e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/wonderwall/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ ID-porten SSO server URL.

{{/*
Aiven instance name.
The last part of the fully qualified name (e.g. <instance> in `redis-<namespace>-<instance>`)
The last part of the fully qualified name (e.g. <instance> in `valkey-<namespace>-<instance>`)
*/}}
{{- define "aiven.instanceName" -}}
{{- $root := .root }}
Expand All @@ -140,7 +140,7 @@ Expects a dict with the following keys:
{{- define "aiven.redisName" -}}
{{- $root := .root }}
{{- $provider := .provider }}
{{- printf "redis-%s-%s" $root.Release.Namespace (include "aiven.instanceName" (dict "provider" $provider "root" $root)) }}
{{- printf "valkey-%s-%s" $root.Release.Namespace (include "aiven.instanceName" (dict "provider" $provider "root" $root)) }}
{{- end }}

{{/*
Expand Down
6 changes: 3 additions & 3 deletions charts/wonderwall/templates/_resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Expects a dict as input with the following keys:
{{- $name := include "aiven.redisName" (dict "root" $root "provider" $provider) }}
---
apiVersion: aiven.io/v1alpha1
kind: Redis
kind: Valkey
metadata:
name: {{ $name }}
annotations:
Expand All @@ -25,7 +25,7 @@ spec:
maintenanceWindowTime: "02:00:00"
terminationProtection: true
userConfig:
redis_maxmemory_policy: "allkeys-lru"
valkey_maxmemory_policy: "allkeys-lru"
{{- end }}

{{/*
Expand Down Expand Up @@ -77,7 +77,7 @@ metadata:
{{- include "wonderwall.labels" $root | nindent 4 }}
wonderwall.nais.io/provider: {{ $provider }}
spec:
redis:
valkey:
- access: {{ $access }}
instance: {{ $instance }}
secretName: {{ $secretName }}
Expand Down

0 comments on commit 75a567e

Please sign in to comment.