Fix rendering of vm_memory_high_watermark param (#22017)

Signed-off-by: Rafael Rios Saavedra <rrios@vmware.com>
This commit is contained in:
Rafael Ríos Saavedra
2024-01-12 11:44:23 +01:00
committed by GitHub
parent ac8624c665
commit f12f2b229c
2 changed files with 5 additions and 2 deletions

View File

@@ -30,4 +30,4 @@ maintainers:
name: rabbitmq
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/rabbitmq
version: 12.6.2
version: 12.6.3

View File

@@ -386,7 +386,6 @@ tcpListenOptions:
configuration: |-
## Username and password
##
default_user = {{ .Values.auth.username }}
{{- if and (not .Values.auth.securePassword) .Values.auth.password }}
default_pass = {{ .Values.auth.password }}
@@ -488,7 +487,11 @@ configuration: |-
## Memory Threshold
##
total_memory_available_override_value = {{ include "rabbitmq.toBytes" .Values.resources.limits.memory }}
{{- if (eq .Values.memoryHighWatermark.type "absolute") }}
vm_memory_high_watermark.{{ .Values.memoryHighWatermark.type }} = {{ include "rabbitmq.toBytes" .Values.memoryHighWatermark.value }}
{{- else if (eq .Values.memoryHighWatermark.type "relative") }}
vm_memory_high_watermark.{{ .Values.memoryHighWatermark.type }} = {{ .Values.memoryHighWatermark.value }}
{{- end }}
## TCP Listen Options
##
tcp_listen_options.backlog = {{ .Values.tcpListenOptions.backlog }}