diff --git a/stable/wiremock/Chart.yaml b/stable/wiremock/Chart.yaml index 0819ed23..dd472f6a 100644 --- a/stable/wiremock/Chart.yaml +++ b/stable/wiremock/Chart.yaml @@ -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 diff --git a/stable/wiremock/README.md b/stable/wiremock/README.md index a515af80..f8678ee2 100644 --- a/stable/wiremock/README.md +++ b/stable/wiremock/README.md @@ -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. @@ -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 | `[]` | | diff --git a/stable/wiremock/templates/deployment.yaml b/stable/wiremock/templates/deployment.yaml index dfbcb490..3104e0bf 100644 --- a/stable/wiremock/templates/deployment.yaml +++ b/stable/wiremock/templates/deployment.yaml @@ -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 }} diff --git a/stable/wiremock/templates/serviceaccount.yaml b/stable/wiremock/templates/serviceaccount.yaml new file mode 100644 index 00000000..db19f28a --- /dev/null +++ b/stable/wiremock/templates/serviceaccount.yaml @@ -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 }} \ No newline at end of file diff --git a/stable/wiremock/values.yaml b/stable/wiremock/values.yaml index d6395114..b3d5151a 100644 --- a/stable/wiremock/values.yaml +++ b/stable/wiremock/values.yaml @@ -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