Skip to content

Commit

Permalink
Add helm value for custom jmx jar location when using other jmx init …
Browse files Browse the repository at this point in the history
…container images (#846)

* add helm value for custom jmx jar location when using other jmx init container images

* fix: added correct expected yaml output files

* fix: missed some files
  • Loading branch information
corang authored Aug 5, 2024
1 parent 19cc5e6 commit f89a681
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/main/charts/bamboo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,12 @@ monitoring:
#
jmxExporterInitContainer:

# -- The location of the JMX exporter jarfile in the JMX exporter image
# Leave blank for default bitnami image
#
jmxJarLocation:


# -- Whether to run JMX exporter init container as root to copy JMX exporter binary to shared home volume.
# Set to false if running containers as root is not allowed in the cluster.
#
Expand Down
5 changes: 5 additions & 0 deletions src/main/charts/bitbucket/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,11 @@ monitoring:
#
jmxExporterInitContainer:

# -- The location of the JMX exporter jarfile in the JMX exporter image
# Leave blank for default bitnami image
#
jmxJarLocation:

# -- Whether to run JMX exporter init container as root to copy JMX exporter binary to shared home volume.
# Set to false if running containers as root is not allowed in the cluster.
#
Expand Down
2 changes: 1 addition & 1 deletion src/main/charts/common/templates/_jmx.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Jmx init container
- name: fetch-jmx-exporter
image: {{ .Values.monitoring.jmxExporterImageRepo}}:{{ .Values.monitoring.jmxExporterImageTag}}
command: ["cp"]
args: ["/opt/bitnami/jmx-exporter/jmx_prometheus_javaagent.jar", "{{ .Values.volumes.sharedHome.mountPath }}"]
args: ["{{ .Values.monitoring.jmxExporterInitContainer.jmxJarLocation | default "/opt/bitnami/jmx-exporter/jmx_prometheus_javaagent.jar" }}", "{{ .Values.volumes.sharedHome.mountPath }}"]
{{- if .Values.monitoring.jmxExporterInitContainer.resources }}
resources:
{{- with .Values.monitoring.jmxExporterInitContainer.resources }}
Expand Down
5 changes: 5 additions & 0 deletions src/main/charts/confluence/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,11 @@ monitoring:
#
jmxExporterInitContainer:

# -- The location of the JMX exporter jarfile in the JMX exporter image
# Leave blank for default bitnami image
#
jmxJarLocation:

# -- Whether to run JMX exporter init container as root to copy JMX exporter binary to shared home volume.
# Set to false if running containers as root is not allowed in the cluster.
#
Expand Down
5 changes: 5 additions & 0 deletions src/main/charts/crowd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,11 @@ monitoring:
#
jmxExporterInitContainer:

# -- The location of the JMX exporter jarfile in the JMX exporter image
# Leave blank for default bitnami image
#
jmxJarLocation:

# -- Whether to run JMX exporter init container as root to copy JMX exporter binary to shared home volume.
# Set to false if running containers as root is not allowed in the cluster.
#
Expand Down
5 changes: 5 additions & 0 deletions src/main/charts/jira/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,11 @@ monitoring:
#
jmxExporterInitContainer:

# -- The location of the JMX exporter jarfile in the JMX exporter image
# Leave blank for default bitnami image
#
jmxJarLocation:

# -- Whether to run JMX exporter init container as root to copy JMX exporter binary to shared home volume.
# Set to false if running containers as root is not allowed in the cluster.
#
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/expected_helm_output/bamboo/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ data:
jmxExporterImageTag: 0.18.0
jmxExporterInitContainer:
customSecurityContext: {}
jmxJarLocation: null
resources: {}
runAsRoot: true
jmxExporterPort: 9999
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ data:
jmxExporterImageTag: 0.18.0
jmxExporterInitContainer:
customSecurityContext: {}
jmxJarLocation: null
resources: {}
runAsRoot: true
jmxExporterPort: 9999
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ data:
jmxExporterImageTag: 0.18.0
jmxExporterInitContainer:
customSecurityContext: {}
jmxJarLocation: null
resources: {}
runAsRoot: true
jmxExporterPort: 9999
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/expected_helm_output/crowd/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ data:
jmxExporterImageTag: 0.18.0
jmxExporterInitContainer:
customSecurityContext: {}
jmxJarLocation: null
resources: {}
runAsRoot: true
jmxExporterPort: 9999
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/expected_helm_output/jira/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ data:
jmxExporterImageTag: 0.18.0
jmxExporterInitContainer:
customSecurityContext: {}
jmxJarLocation: null
resources: {}
runAsRoot: true
jmxExporterPort: 9999
Expand Down

0 comments on commit f89a681

Please sign in to comment.