From 87045dff6e8e040cec276096791a1604b7a96809 Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Tue, 14 May 2024 10:41:42 +0200 Subject: [PATCH] Update --- charts/producer-app-cleanup-job/templates/job.yaml | 2 +- charts/producer-app/README.md | 2 +- charts/producer-app/templates/pod.yaml | 2 +- charts/streams-app-cleanup-job/templates/job.yaml | 2 +- charts/streams-app/README.md | 2 +- charts/streams-app/templates/deployment.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts/producer-app-cleanup-job/templates/job.yaml b/charts/producer-app-cleanup-job/templates/job.yaml index 7bd282ca..86b40ae2 100644 --- a/charts/producer-app-cleanup-job/templates/job.yaml +++ b/charts/producer-app-cleanup-job/templates/job.yaml @@ -115,7 +115,7 @@ spec: volumeMounts: {{- range $key, $value := .Values.files }} - name: config - mountPath: {{ $value.mountPath | quote }} + mountPath: {{ printf "%s/%s" $value.mountPath $key | quote }} subPath: {{ $key | quote }} {{- end }} {{- end }} diff --git a/charts/producer-app/README.md b/charts/producer-app/README.md index 671afc2a..768cdd30 100644 --- a/charts/producer-app/README.md +++ b/charts/producer-app/README.md @@ -64,7 +64,7 @@ Alternatively, a YAML file that specifies the values for the parameters can be p | `env` | Custom environment variables | `{}` | | `secrets` | Custom secret environment variables. Prefix with `configurationEnvPrefix` in order to pass secrets to command line or prefix with `STREAMS_` to pass secrets to Kafka Streams configuration. E.g., `APP_MY_PARAM` would be passed as `--my-param` and `STREAMS_MAX_POLL_TIMEOUT_MS` would be translated to `max.poll.timeout.ms`. | `{}` | | `secretRefs` | Inject existing secrets as environment variables. Map key is used as environment variable name. Value consists of secret `name` and `key`. | `{}` | -| `files` | Map of files to mount for the app. Key is used as key in configmap. `mountPath` and `content` are required (recommended to be used with `--set-file`). | `{}` | +| `files` | Map of files to mount for the app. File will be mounted as `$value.mountPath/$key`. `$value.content` are required (recommended to be used with `--set-file`). | `{}` | ### JVM diff --git a/charts/producer-app/templates/pod.yaml b/charts/producer-app/templates/pod.yaml index 9279f07d..96d60eae 100644 --- a/charts/producer-app/templates/pod.yaml +++ b/charts/producer-app/templates/pod.yaml @@ -111,7 +111,7 @@ spec: volumeMounts: {{- range $key, $value := .Values.files }} - name: config - mountPath: {{ $value.mountPath | quote }} + mountPath: {{ printf "%s/%s" $value.mountPath $key | quote }} subPath: {{ $key | quote }} {{- end }} {{- end }} diff --git a/charts/streams-app-cleanup-job/templates/job.yaml b/charts/streams-app-cleanup-job/templates/job.yaml index 231b9cbe..a3b401f7 100644 --- a/charts/streams-app-cleanup-job/templates/job.yaml +++ b/charts/streams-app-cleanup-job/templates/job.yaml @@ -144,7 +144,7 @@ spec: volumeMounts: {{- range $key, $value := .Values.files }} - name: config - mountPath: {{ $value.mountPath | quote }} + mountPath: {{ printf "%s/%s" $value.mountPath $key | quote }} subPath: {{ $key | quote }} {{- end }} {{- end }} diff --git a/charts/streams-app/README.md b/charts/streams-app/README.md index 4f32de73..948baa44 100644 --- a/charts/streams-app/README.md +++ b/charts/streams-app/README.md @@ -77,7 +77,7 @@ Alternatively, a YAML file that specifies the values for the parameters can be p | `env` | Custom environment variables | `{}` | | `secrets` | Custom secret environment variables. Prefix with `configurationEnvPrefix` in order to pass secrets to command line or prefix with `STREAMS_` to pass secrets to Kafka Streams configuration. E.g., `APP_MY_PARAM` would be passed as `--my-param` and `STREAMS_MAX_POLL_TIMEOUT_MS` would be translated to `max.poll.timeout.ms`. | `{}` | | `secretRefs` | Inject existing secrets as environment variables. Map key is used as environment variable name. Value consists of secret `name` and `key`. | `{}` | -| `files` | Map of files to mount for the app. Key is used as key in configmap. `mountPath` and `content` are required (recommended to be used with `--set-file`). | `{}` | +| `files` | Map of files to mount for the app. File will be mounted as `$value.mountPath/$key`. `$value.content` are required (recommended to be used with `--set-file`). | `{}` | ### JMX Configuration diff --git a/charts/streams-app/templates/deployment.yaml b/charts/streams-app/templates/deployment.yaml index 7478d7d5..dc93c499 100644 --- a/charts/streams-app/templates/deployment.yaml +++ b/charts/streams-app/templates/deployment.yaml @@ -202,7 +202,7 @@ spec: volumeMounts: {{- range $key, $value := .Values.files }} - name: config - mountPath: {{ $value.mountPath | quote }} + mountPath: {{ printf "%s/%s" $value.mountPath $key | quote }} subPath: {{ $key | quote }} {{- end }} {{- if and .Values.persistence.enabled .Values.statefulSet }}