Skip to content

Commit

Permalink
backport of commit 01c45ce
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganeshrockz committed Sep 6, 2023
1 parent fe1a05c commit 10bcb7c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions charts/consul/templates/server-config-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,20 +190,7 @@ data:
"sink": {
{{- range $index, $element := .Values.server.auditLogs.sinks }}
{{- if ne $index 0 }},{{end}}
"{{ $element.name }}": {
{{- $firstKeyValuePair := false }}
{{- range $k, $v := $element }}
{{- if ne $k "name" }}
{{- if ne $firstKeyValuePair false }},{{end}}
{{- $firstKeyValuePair = true }}
{{- if or (eq $k "rotate_max_files") (eq $k "rotate_bytes") }}
"{{ $k }}": {{ $v }}
{{- else }}
"{{ $k }}": "{{ $v }}"
{{- end }}
{{- end }}
{{- end }}
}
"{{ get $element "name" }}": {{ omit $element "name" | toJson }}
{{- end }}
}
}
Expand Down

0 comments on commit 10bcb7c

Please sign in to comment.