Skip to content

Commit

Permalink
add config volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Romanow committed Apr 16, 2024
1 parent 191b5ee commit a3de394
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/java-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: java-service
type: application
description: Helm chart for Spring Boot application with logging and tracing
version: 1.5.2
version: 1.5.3
appVersion: "v1.0"
home: https://github.com/Romanow/helm-charts/tree/master/charts/java-service
icon: https://raw.githubusercontent.com/Romanow/helm-charts/master/icons/spring-boot.png
Expand Down
2 changes: 1 addition & 1 deletion charts/java-service/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Helm Chart for java-service

![Version: 1.5.2](https://img.shields.io/badge/Version-1.5.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0](https://img.shields.io/badge/AppVersion-v1.0-informational?style=flat-square)
![Version: 1.5.3](https://img.shields.io/badge/Version-1.5.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.0](https://img.shields.io/badge/AppVersion-v1.0-informational?style=flat-square)

Helm chart for Spring Boot application with logging and tracing

Expand Down
14 changes: 7 additions & 7 deletions charts/java-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ spec:
volumeMounts:
- name: {{ .Chart.Name }}-logs-volume
mountPath: "/var/log/{{ .Values.logFolder | default .Release.Name }}/"
{{- range $config := .Values.configVolumes }}
- name: {{ $config.name }}
mountPath: {{ $config.mount }}
{{- if $config.path }}
subPath: {{ $config.path }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.filebeat.enabled }}
- name: {{ .Release.Name }}-filebeat
Expand All @@ -119,13 +126,6 @@ spec:
- name: {{ .Chart.Name }}-config-volume
mountPath: /usr/share/filebeat/filebeat.yml
subPath: filebeat.yml
{{- range $config := .Values.configVolumes }}
- name: {{ $config.name }}
mountPath: {{ $config.mount }}
{{- if $config.path }}
subPath: {{ $config.path }}
{{- end }}
{{- end }}
{{- end }}
volumes:
- name: {{ .Chart.Name }}-logs-volume
Expand Down

0 comments on commit a3de394

Please sign in to comment.