[bitnami/tomcat] Another monitoring fixes (#8940)

This commit is contained in:
Peter Kaššák
2022-02-11 16:51:56 +01:00
committed by GitHub
parent 39e7c8c475
commit a956bad36b
3 changed files with 10 additions and 2 deletions

View File

@@ -26,4 +26,4 @@ name: tomcat
sources:
- https://github.com/bitnami/bitnami-docker-tomcat
- http://tomcat.apache.org
version: 10.1.8
version: 10.1.9

View File

@@ -61,7 +61,11 @@ Expand the name of the chart.
Return the proper CATALINA_OPTS value
*/}}
{{- define "tomcat.catalinaOpts" -}}
{{- printf "%s %s" .Values.catalinaOpts .Values.metrics.jmx.catalinaOpts | trim -}}
{{- if .Values.metrics.jmx.enabled -}}
{{- default "" (cat .Values.catalinaOpts .Values.metrics.jmx.catalinaOpts) | trim -}}
{{- else -}}
{{- default "" .Values.catalinaOpts | trim -}}
{{- end -}}
{{- end -}}
{{/*

View File

@@ -76,6 +76,10 @@ containers:
key: tomcat-password
- name: TOMCAT_ALLOW_REMOTE_MANAGEMENT
value: {{ .Values.tomcatAllowRemoteManagement | quote }}
{{- if or .Values.catalinaOpts .Values.metrics.jmx.enabled }}
- name: CATALINA_OPTS
value: {{ include "tomcat.catalinaOpts" . | quote }}
{{- end }}
{{- if .Values.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 6 }}
{{- end }}