Skip to content

Commit

Permalink
Disable securityContext when run on OpenShift (#748)
Browse files Browse the repository at this point in the history
Co-authored-by: Yevhen Ivantsov <yivantsov@atlassian.com>
  • Loading branch information
bianchi2 and Yevhen Ivantsov authored Jan 24, 2024
1 parent 72e24af commit 10a66ec
Show file tree
Hide file tree
Showing 2 changed files with 5 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.5
version: 1.2.6
# Please make sure that version and appVersion are always the same.
appVersion: 1.2.5
appVersion: 1.2.6
keywords:
- common
- helper
Expand Down
3 changes: 3 additions & 0 deletions src/main/charts/common/templates/_jmx.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Jmx init container
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- if .Values.openshift.runWithRestrictedSCC }}
{{- else}}
{{- if .Values.monitoring.jmxExporterInitContainer.runAsRoot }}
securityContext:
runAsUser: 0
Expand All @@ -45,6 +47,7 @@ Jmx init container
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
volumeMounts:
- mountPath: {{ .Values.volumes.sharedHome.mountPath | quote }}
name: shared-home
Expand Down

0 comments on commit 10a66ec

Please sign in to comment.