diff --git a/charts/java-service/Chart.yaml b/charts/java-service/Chart.yaml index fb58281..811ecf1 100644 --- a/charts/java-service/Chart.yaml +++ b/charts/java-service/Chart.yaml @@ -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.1 +version: 1.5.2 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 diff --git a/charts/java-service/README.md b/charts/java-service/README.md index 4dda52c..dcb1384 100644 --- a/charts/java-service/README.md +++ b/charts/java-service/README.md @@ -1,6 +1,6 @@ # Helm Chart for java-service -![Version: 1.5.1](https://img.shields.io/badge/Version-1.5.1-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.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) Helm chart for Spring Boot application with logging and tracing @@ -41,6 +41,15 @@ false Enable circuit breaker (set `CIRCUIT_BREAKER_ENABLED` env) + + configVolumes + list +
+[]
+
+ + External configs + database.host string diff --git a/charts/java-service/templates/deployment.yaml b/charts/java-service/templates/deployment.yaml index 8d35520..06f548c 100644 --- a/charts/java-service/templates/deployment.yaml +++ b/charts/java-service/templates/deployment.yaml @@ -119,6 +119,13 @@ spec: - name: {{ .Chart.Name }}-config-volume mountPath: /usr/share/filebeat/filebeat.yml subPath: filebeat.yml + {{- range $config := .Values.configVolumes }} + - name: {{ $config.name }}-config-volume + mountPath: {{ $config.mount }} + {{- if $config.path }} + subPath: {{ $config.path }} + {{- end }} + {{- end }} {{- end }} volumes: - name: {{ .Chart.Name }}-logs-volume @@ -126,3 +133,9 @@ spec: configMap: name: {{ .Release.Name }} defaultMode: 420 + {{- range $config := .Values.configVolumes }} + - name: {{ $config.name }} + configMap: + name: {{ $config.name }}-config-volume + defaultMode: 420 + {{- end }} diff --git a/charts/java-service/values.yaml b/charts/java-service/values.yaml index 0f782be..5fa620c 100644 --- a/charts/java-service/values.yaml +++ b/charts/java-service/values.yaml @@ -25,6 +25,9 @@ environments: [] # -- Additional secrets secrets: [] +# -- External configs +configVolumes: [] + # -- Count of replicas replicas: 1 ports: