Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable/wiremock]: implements environment secrets support #624

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2"
version: "1.4.3"
appVersion: "2.26.0"
home: http://wiremock.org/
icon: http://wiremock.org/images/wiremock-concept-icon-01.png
Expand Down
7 changes: 4 additions & 3 deletions stable/wiremock/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# wiremock

![Version: 1.4.2](https://img.shields.io/badge/Version-1.4.2-informational?style=flat-square) ![AppVersion: 2.26.0](https://img.shields.io/badge/AppVersion-2.26.0-informational?style=flat-square)
![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)

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.2
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/wiremock --version 1.4.3
```

To install the chart with the release name `my-release`:
Expand Down Expand Up @@ -121,7 +121,8 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/wiremock -f value
| affinity | object | `{}` | |
| consumer.args | list | `[]` | custom WireMock startup arguments. |
| consumer.args_include_default | bool | `true` | whether WireMock arguments for performance test setup should be included |
| consumer.environment | object | `{}` | |
| consumer.environment | object | `{}` | environment variables used in the WireMock container |
| consumer.environment_secret | object | `{}` | environment variables used in the WireMock container, stored as secrets |
| consumer.initContainer | list | `[]` | support for stubs with large files using binary container with zip archive. |
| consumer.initVolume | list | `[]` | custom extra volume for the initialization container providing the zip archive. |
| consumer.name | string | `"example"` | a name used for resources and settings in this WireMock |
Expand Down
13 changes: 13 additions & 0 deletions stable/wiremock/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if .Values.consumer.environment_secret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "wiremock.fullname" . }}
labels:
{{ include "wiremock.labels" . | indent 4 }}
type: Opaque
data:
{{- range $key, $value := .Values.consumer.environment_secret }}
{{ $key }}: {{ $value | b64enc | quote }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion stable/wiremock/values.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
consumer:
# consumer.name -- a name used for resources and settings in this WireMock
name: example
# consumer.hostname -- the public host name for this WireMock
# consumer.environment -- environment variables used in the WireMock container
environment: {}
# WM_LOGGING_LEVEL: INFO
# consumer.environment_secret -- environment variables used in the WireMock container, stored as secrets
environment_secret: {}
# consumer.args_include_default -- whether WireMock arguments for performance test setup should be included
args_include_default: true
# consumer.args -- custom WireMock startup arguments.
Expand Down
Loading