Skip to content

Commit

Permalink
Make it possible to run jmx init container as non root
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Ivantsov committed Sep 14, 2023
1 parent a953212 commit 9b031d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/charts/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: v2
name: common
description: A Library Helm Chart for grouping common logic between Atlassian charts. This chart is not deployable by itself.
type: library
version: 1.2.3
version: 1.2.4
# Please make sure that version and appVersion are always the same.
appVersion: 1.2.3
appVersion: 1.2.4
keywords:
- common
- helper
Expand Down
2 changes: 2 additions & 0 deletions src/main/charts/common/templates/_jmx.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ Jmx init container
image: {{ .Values.monitoring.jmxExporterImageRepo}}:{{ .Values.monitoring.jmxExporterImageTag}}
command: ["cp"]
args: ["/opt/bitnami/jmx-exporter/jmx_prometheus_javaagent.jar", "{{ .Values.volumes.sharedHome.mountPath }}"]
{{- if .Values.monitoring.jmxExporterInitContainerRunAsRoot }}
securityContext:
runAsUser: 0
{{- end }}
volumeMounts:
- mountPath: {{ .Values.volumes.sharedHome.mountPath | quote }}
name: shared-home
Expand Down

0 comments on commit 9b031d6

Please sign in to comment.