Skip to content

Commit

Permalink
Remove mlock (#29)
Browse files Browse the repository at this point in the history
`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 <[email protected]>
  • Loading branch information
lewismiddleton authored Jan 10, 2025
1 parent b73f988 commit ee06574
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions charts/openbao/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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") }}
Expand All @@ -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 }}
Expand Down

0 comments on commit ee06574

Please sign in to comment.