Skip to content

Commit

Permalink
[stable/wiremock] Add serviceAccount (deliveryhero#608)
Browse files Browse the repository at this point in the history
* [stable/wiremock] Add serviceAccount

* Fix README.md

---------

Co-authored-by: Max Williams <[email protected]>
  • Loading branch information
2 people authored and fekaiser committed Oct 23, 2024
1 parent 6f6866b commit 933e13b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 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.1"
version: "1.4.2"
appVersion: "2.26.0"
home: http://wiremock.org/
icon: http://wiremock.org/images/wiremock-concept-icon-01.png
Expand Down
4 changes: 3 additions & 1 deletion stable/wiremock/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# wiremock

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

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

Expand Down Expand Up @@ -163,6 +163,8 @@ helm install my-release deliveryhero/wiremock -f values.yaml
| resources.requests.memory | string | `"3Gi"` | |
| service.port | int | `80` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.enabled | bool | `false` | |
| serviceAnnotations | object | `{}` | |
| strategy.type | string | `"RollingUpdate"` | |
| tolerations | list | `[]` | |
Expand Down
3 changes: 3 additions & 0 deletions stable/wiremock/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
{{ toYaml . | trim | indent 8 }}
{{- end}}
spec:
{{- if .Values.serviceAccount.enabled }}
serviceAccount: {{ template "wiremock.fullname" . }}
{{- end }}
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- toYaml . | indent 8 }}
Expand Down
11 changes: 11 additions & 0 deletions stable/wiremock/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if .Values.serviceAccount.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:
annotations:
kubernetes.io/enforce-mountable-secrets: "true"
{{- with .Values.serviceAccount.annotations }}
{{ toYaml . | trim | indent 4 }}
{{- end }}
name: {{ template "wiremock.fullname" . }}
{{- end }}
4 changes: 4 additions & 0 deletions stable/wiremock/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ consumer:
# consumer.initVolume -- custom extra volume for the initialization container providing the zip archive.
initVolume: []

serviceAccount:
enabled: false
annotations: {}

service:
type: ClusterIP
port: 80
Expand Down

0 comments on commit 933e13b

Please sign in to comment.