diff --git a/charts/wiremock/Chart.yaml b/charts/wiremock/Chart.yaml index 48e53b6..ce61fa3 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.2.0 +version: 1.3.0 # 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/configmap-mappings.yaml b/charts/wiremock/templates/configmap-mappings.yaml index 036b39e..b7f73c3 100644 --- a/charts/wiremock/templates/configmap-mappings.yaml +++ b/charts/wiremock/templates/configmap-mappings.yaml @@ -10,4 +10,7 @@ data: {{- if hasPrefix "mappings/" $key }} {{/* only when in mappings/ */}} {{ $key | trimPrefix "mappings/" }}: {{ $files.Get $key | quote }} {{/* adapt $key as desired */}} {{- end }} - {{- end }} \ No newline at end of file + {{- end }} + {{- with .Values.mappings }} + {{- toYaml . | nindent 2 }} + {{- end }} diff --git a/charts/wiremock/templates/configmap-responses.yaml b/charts/wiremock/templates/configmap-responses.yaml index 61badf2..a41f46b 100644 --- a/charts/wiremock/templates/configmap-responses.yaml +++ b/charts/wiremock/templates/configmap-responses.yaml @@ -10,4 +10,7 @@ data: {{- if hasPrefix "responses/" $key }} {{/* only when in responses/ */}} {{ $key | trimPrefix "responses/" }}: {{ $files.Get $key | quote }} {{/* adapt $key as desired */}} {{- end }} + {{- end }} + {{- with .Values.responses }} + {{- toYaml . | nindent 2 }} {{- end }} \ No newline at end of file diff --git a/charts/wiremock/values.yaml b/charts/wiremock/values.yaml index efa0b5e..fedd2f2 100644 --- a/charts/wiremock/values.yaml +++ b/charts/wiremock/values.yaml @@ -2,6 +2,28 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. +mappings: {} +# custom_mapping.json: | +# { +# "request": { +# "method": "POST", +# "url": "/v1/custom-mapping" +# }, +# "response":{ +# "status":200, +# "bodyFileName":"responses/custom_response.json", +# "headers":{ +# "Content-Type":"application/json" +# } +# } +# } + +responses: {} +# custom_response.json: | +# { +# "message": "Here is my custom response!" +# } + replicaCount: 1 image: