From feed1a166a1d27f9824fdc7deb5d9a84bcf1f8d8 Mon Sep 17 00:00:00 2001 From: "dmitrii.bubnov@gcore.lu" Date: Fri, 26 Sep 2025 13:28:43 +0300 Subject: [PATCH] fix cp --- charts/wiremock/Chart.yaml | 2 +- charts/wiremock/templates/deployment.yaml | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/charts/wiremock/Chart.yaml b/charts/wiremock/Chart.yaml index 0309729..1f75b80 100644 --- a/charts/wiremock/Chart.yaml +++ b/charts/wiremock/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.9.0 +version: 1.9.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/wiremock/templates/deployment.yaml b/charts/wiremock/templates/deployment.yaml index ceb5e2d..f1c2df7 100644 --- a/charts/wiremock/templates/deployment.yaml +++ b/charts/wiremock/templates/deployment.yaml @@ -82,7 +82,10 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}" imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }} - command: ["bash", "-c", "cp -rfv /data/mappings /home/wiremock/storage/mappings"] + command: + - bash + - -c + - find /data/mappings -type f -name "*.json" -exec cp {} /home/wiremock/storage/mappings/ \; resources: {{- toYaml .Values.initContainer.resources | nindent 12 }} volumeMounts: @@ -100,7 +103,10 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}" imagePullPolicy: {{ .Values.initContainer.image.pullPolicy }} - command: ["bash", "-c", "cp -rfv /data/responses /home/wiremock/storage/__files"] + command: + - bash + - -c + - find /data/responses -type f -name "*.json" -exec cp {} /home/wiremock/storage/__files/ \; resources: {{- toYaml .Values.initContainer.resources | nindent 12 }} volumeMounts: