From ee06574d19e35086454906d48c63a85f8d23e522 Mon Sep 17 00:00:00 2001 From: lewismiddleton <66401219+lewismiddleton@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:54:18 +0000 Subject: [PATCH] Remove mlock (#29) `mlock` has been removed from openbao since v2.0.0. This fixes a warning in the bao server logs when deploying via helm. Signed-off-by: Lewis Middleton <66401219+lewismiddleton@users.noreply.github.com> --- charts/openbao/templates/_helpers.tpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/openbao/templates/_helpers.tpl b/charts/openbao/templates/_helpers.tpl index 2650db50b..0d88f5e2e 100644 --- a/charts/openbao/templates/_helpers.tpl +++ b/charts/openbao/templates/_helpers.tpl @@ -1075,7 +1075,6 @@ config file from values {{- if or (eq .mode "ha") (eq .mode "standalone") }} {{- $type := typeOf (index .Values.server .mode).config }} {{- if eq $type "string" }} - disable_mlock = true {{- if eq .mode "standalone" }} {{ tpl .Values.server.standalone.config . | nindent 4 | trim }} {{- else if and (eq .mode "ha") (eq (.Values.server.ha.raft.enabled | toString) "false") }} @@ -1085,9 +1084,9 @@ config file from values {{ end }} {{- else }} {{- if and (eq .mode "ha") (eq (.Values.server.ha.raft.enabled | toString) "true") }} -{{ merge (dict "disable_mlock" true) (index .Values.server .mode).raft.config | toPrettyJson | indent 4 }} +{{ (index .Values.server .mode).raft.config | toPrettyJson | indent 4 }} {{- else }} -{{ merge (dict "disable_mlock" true) (index .Values.server .mode).config | toPrettyJson | indent 4 }} +{{ (index .Values.server .mode).config | toPrettyJson | indent 4 }} {{- end }} {{- end }} {{- end }}