diff --git a/charts/netbox/Chart.lock b/charts/netbox/Chart.lock index e0a348a0..6f16f4ec 100644 --- a/charts/netbox/Chart.lock +++ b/charts/netbox/Chart.lock @@ -5,8 +5,8 @@ dependencies: - name: postgresql repository: oci://registry-1.docker.io/bitnamicharts version: 15.5.28 -- name: redis +- name: valkey repository: oci://registry-1.docker.io/bitnamicharts - version: 20.0.5 -digest: sha256:b968eff2f28c3857fb84812475fa372942fd432480127e2ea8a27808a2513ea0 -generated: "2024-09-05T11:39:28.741696145Z" + version: 0.3.15 +digest: sha256:b92a2e8164c4e8d5a8c1f100df95d31784d7d20c00f250b51b2d09477b0f0084 +generated: "2024-09-07T20:27:44.70026985Z" diff --git a/charts/netbox/Chart.yaml b/charts/netbox/Chart.yaml index 9d5c9c50..f13d7aaf 100644 --- a/charts/netbox/Chart.yaml +++ b/charts/netbox/Chart.yaml @@ -25,10 +25,10 @@ dependencies: version: ^15.5.28 repository: oci://registry-1.docker.io/bitnamicharts condition: postgresql.enabled - - name: redis - version: ^20.0.5 + - name: valkey + version: ^0.3.15 repository: oci://registry-1.docker.io/bitnamicharts - condition: redis.enabled + condition: valkey.enabled annotations: artifacthub.io/license: Apache-2.0 artifacthub.io/links: | diff --git a/charts/netbox/templates/_helpers.tpl b/charts/netbox/templates/_helpers.tpl index 2ffb275b..446844eb 100644 --- a/charts/netbox/templates/_helpers.tpl +++ b/charts/netbox/templates/_helpers.tpl @@ -50,22 +50,22 @@ Name of the key in Secret that contains the PostgreSQL password {{- end }} {{/* -Name of the Secret that contains the Redis tasks password +Name of the Secret that contains the Valkey tasks password */}} {{- define "netbox.tasksRedis.secret" -}} - {{- if .Values.redis.enabled }} - {{- include "redis.secretName" .Subcharts.redis -}} + {{- if .Values.valkey.enabled }} + {{- include "valkey.secretName" .Subcharts.valkey -}} {{- else }} - {{- include "common.secrets.name" (dict "existingSecret" .Values.tasksRedis.existingSecretName "defaultNameSuffix" "redis" "context" $) }} + {{- include "common.secrets.name" (dict "existingSecret" .Values.tasksRedis.existingSecretName "defaultNameSuffix" "valkey" "context" $) }} {{- end }} {{- end }} {{/* -Name of the key in Secret that contains the Redis tasks password +Name of the key in Secret that contains the Valkey tasks password */}} {{- define "netbox.tasksRedis.secretKey" -}} - {{- if .Values.redis.enabled -}} - {{- include "redis.secretPasswordKey" .Subcharts.redis -}} + {{- if .Values.valkey.enabled -}} + {{- include "valkey.secretPasswordKey" .Subcharts.valkey -}} {{- else if .Values.tasksRedis.existingSecretName -}} {{ .Values.tasksRedis.existingSecretKey }} {{- else -}} @@ -74,22 +74,22 @@ Name of the key in Secret that contains the Redis tasks password {{- end }} {{/* -Name of the Secret that contains the Redis cache password +Name of the Secret that contains the Valkey cache password */}} {{- define "netbox.cachingRedis.secret" -}} - {{- if .Values.redis.enabled }} - {{- include "redis.secretName" .Subcharts.redis -}} + {{- if .Values.valkey.enabled }} + {{- include "valkey.secretName" .Subcharts.valkey -}} {{- else }} - {{- include "common.secrets.name" (dict "existingSecret" .Values.cachingRedis.existingSecretName "defaultNameSuffix" "redis" "context" $) }} + {{- include "common.secrets.name" (dict "existingSecret" .Values.cachingRedis.existingSecretName "defaultNameSuffix" "valkey" "context" $) }} {{- end }} {{- end }} {{/* -Name of the key in Secret that contains the Redis cache password +Name of the key in Secret that contains the Valkey cache password */}} {{- define "netbox.cachingRedis.secretKey" -}} - {{- if .Values.redis.enabled -}} - {{- include "redis.secretPasswordKey" .Subcharts.redis -}} + {{- if .Values.valkey.enabled -}} + {{- include "valkey.secretPasswordKey" .Subcharts.valkey -}} {{- else if .Values.cachingRedis.existingSecretName -}} {{ .Values.cachingRedis.existingSecretKey }} {{- else -}} diff --git a/charts/netbox/templates/configmap.yaml b/charts/netbox/templates/configmap.yaml index 5171d75d..f95e83e2 100644 --- a/charts/netbox/templates/configmap.yaml +++ b/charts/netbox/templates/configmap.yaml @@ -63,10 +63,10 @@ data: # Post-process certain values CORS_ORIGIN_REGEX_WHITELIST = [re.compile(r) for r in CORS_ORIGIN_REGEX_WHITELIST] - {{- if and (not .Values.redis.enabled) .Values.tasksRedis.sentinels }} + {{- if and (not .Values.valkey.enabled) .Values.tasksRedis.sentinels }} REDIS['tasks']['SENTINELS'] = [tuple(x.split(r":")) for x in REDIS['tasks']['SENTINELS']] {{- end }} - {{- if and (not .Values.redis.enabled) .Values.cachingRedis.sentinels }} + {{- if and (not .Values.valkey.enabled) .Values.cachingRedis.sentinels }} REDIS['caching']['SENTINELS'] = [tuple(x.split(r":")) for x in REDIS['caching']['SENTINELS']] {{- end }} @@ -177,9 +177,9 @@ data: REDIS: tasks: - {{- if .Values.redis.enabled }} - HOST: {{ printf "%s-master" (include "common.names.fullname" .Subcharts.redis) | quote }} - PORT: {{ .Values.redis.master.service.ports.redis | int }} + {{- if .Values.valkey.enabled }} + HOST: {{ printf "%s-master" (include "common.names.fullname" .Subcharts.valkey) | quote }} + PORT: {{ .Values.valkey.master.service.ports.valkey | int }} {{- else if .Values.tasksRedis.sentinels }} SENTINELS: {{ toJson .Values.tasksRedis.sentinels }} SENTINEL_SERVICE: {{ .Values.tasksRedis.sentinelService | quote }} @@ -194,9 +194,9 @@ data: INSECURE_SKIP_TLS_VERIFY: {{ toJson .Values.tasksRedis.insecureSkipTlsVerify }} CA_CERT_PATH: {{ .Values.tasksRedis.caCertPath | quote }} caching: - {{- if .Values.redis.enabled }} - HOST: {{ printf "%s-master" (include "common.names.fullname" .Subcharts.redis) | quote }} - PORT: {{ .Values.redis.master.service.ports.redis | int }} + {{- if .Values.valkey.enabled }} + HOST: {{ printf "%s-master" (include "common.names.fullname" .Subcharts.valkey) | quote }} + PORT: {{ .Values.valkey.master.service.ports.valkey | int }} {{- else if .Values.cachingRedis.sentinels }} SENTINELS: {{ toJson .Values.cachingRedis.sentinels }} SENTINEL_SERVICE: {{ .Values.cachingRedis.sentinelService | quote }} diff --git a/charts/netbox/templates/redis-secret.yaml b/charts/netbox/templates/valkey-secret.yaml similarity index 83% rename from charts/netbox/templates/redis-secret.yaml rename to charts/netbox/templates/valkey-secret.yaml index 039e1bd7..40bd19c3 100644 --- a/charts/netbox/templates/redis-secret.yaml +++ b/charts/netbox/templates/valkey-secret.yaml @@ -1,8 +1,8 @@ -{{- if not (or .Values.redis.enabled (and .Values.tasksRedis.existingSecretName .Values.cachingRedis.existingSecretName)) -}} +{{- if not (or .Values.valkey.enabled (and .Values.tasksRedis.existingSecretName .Values.cachingRedis.existingSecretName)) -}} apiVersion: v1 kind: Secret metadata: - name: {{ include "common.secrets.name" (dict "defaultNameSuffix" "redis" "context" $) }} + name: {{ include "common.secrets.name" (dict "defaultNameSuffix" "valkey" "context" $) }} namespace: {{ include "common.names.namespace" . | quote }} labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} {{- if .Values.commonAnnotations }} diff --git a/charts/netbox/values.yaml b/charts/netbox/values.yaml index d5977fed..556ad2b4 100644 --- a/charts/netbox/values.yaml +++ b/charts/netbox/values.yaml @@ -996,11 +996,11 @@ externalDatabase: disableServerSideCursors: false targetSessionAttrs: read-write -## Redis chart configuration -## https://github.com/bitnami/charts/blob/main/bitnami/redis/values.yaml -## @param postgresql.enabled Whether to deploy a Redis server to satisfy the applications database requirements +## Valkey chart configuration +## https://github.com/bitnami/charts/blob/main/bitnami/valkey/values.yaml +## @param postgresql.enabled Whether to deploy a Valkey server to satisfy the applications database requirements ## -redis: +valkey: enabled: true tasksRedis: @@ -1009,18 +1009,18 @@ tasksRedis: insecureSkipTlsVerify: false caCertPath: "" - # Used only when redis.enabled is false. host and port are not used if + # Used only when valkey.enabled is false. host and port are not used if # sentinels are given. - host: netbox-redis + host: netbox-valkey port: 6379 sentinels: [] # - mysentinel:26379 - sentinelService: netbox-redis + sentinelService: netbox-valkey sentinelTimeout: 300 username: "" password: "" existingSecretName: "" - existingSecretKey: redis-password + existingSecretKey: valkey-password cachingRedis: database: 1 @@ -1028,18 +1028,18 @@ cachingRedis: insecureSkipTlsVerify: false caCertPath: "" - # Used only when redis.enabled is false. host and port are not used if + # Used only when valkey.enabled is false. host and port are not used if # sentinels are given. - host: netbox-redis + host: netbox-valkey port: 6379 sentinels: [] # - mysentinel:26379 - sentinelService: netbox-redis + sentinelService: netbox-valkey sentinelTimeout: 300 username: "" password: "" existingSecretName: "" - existingSecretKey: redis-password + existingSecretKey: valkey-password ## @section Autoscaling parameters