Skip to content

Commit

Permalink
[stable/wiremock] fix environment secrets handling (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshero authored Nov 21, 2024
1 parent 44bb275 commit 5b3e724
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/wiremock/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: wiremock
version: "1.4.3"
version: "1.4.4"
appVersion: "2.26.0"
home: http://wiremock.org/
icon: http://wiremock.org/images/wiremock-concept-icon-01.png
Expand Down
4 changes: 2 additions & 2 deletions stable/wiremock/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# wiremock

![Version: 1.4.3](https://img.shields.io/badge/Version-1.4.3-informational?style=flat-square) ![AppVersion: 2.26.0](https://img.shields.io/badge/AppVersion-2.26.0-informational?style=flat-square)
![Version: 1.4.4](https://img.shields.io/badge/Version-1.4.4-informational?style=flat-square) ![AppVersion: 2.26.0](https://img.shields.io/badge/AppVersion-2.26.0-informational?style=flat-square)

A service virtualization tool (some call it mock server) for testing purposes.

Expand Down Expand Up @@ -88,7 +88,7 @@ helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/wiremock
To install a specific version of this chart:

```console
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/wiremock --version 1.4.3
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/wiremock --version 1.4.4
```

To install the chart with the release name `my-release`:
Expand Down
8 changes: 8 additions & 0 deletions stable/wiremock/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ spec:
value: {{ $value | quote }}
{{- end }}

{{- range $key, $value := .Values.consumer.environment_secret }}
- name: {{ $key }}
valueFrom:
secretKeyRef:
name: {{ template "wiremock.fullname" $ }}
key: {{ $key }}
{{- end }}

{{- if .Values.consumer.args_include_default }}
args:
- --disable-banner
Expand Down

0 comments on commit 5b3e724

Please sign in to comment.