From 72efa368ecd43ee1ef98cd682755331454226ff4 Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Fri, 12 May 2023 11:33:35 +0200 Subject: [PATCH] fix: add temp-fs to container --- charts/steadybit-extension-postman/Chart.yaml | 2 +- .../templates/deployment.yaml | 4 ++++ .../__snapshot__/deployment_test.yaml.snap | 24 +++++++++++++++---- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/charts/steadybit-extension-postman/Chart.yaml b/charts/steadybit-extension-postman/Chart.yaml index 561da95..1a2f953 100644 --- a/charts/steadybit-extension-postman/Chart.yaml +++ b/charts/steadybit-extension-postman/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: steadybit-extension-postman description: Steadybit Postman extension Helm chart for Kubernetes. -version: 1.6.10 +version: 1.6.11 appVersion: latest home: https://www.steadybit.com/ icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png diff --git a/charts/steadybit-extension-postman/templates/deployment.yaml b/charts/steadybit-extension-postman/templates/deployment.yaml index 070bb13..687484a 100644 --- a/charts/steadybit-extension-postman/templates/deployment.yaml +++ b/charts/steadybit-extension-postman/templates/deployment.yaml @@ -38,6 +38,8 @@ spec: {{- toYaml . | nindent 12 }} {{- end }} volumeMounts: + - name: tmp-dir + mountPath: /tmp {{- include "extensionlib.deployment.volumeMounts" (list .) | nindent 12 }} livenessProbe: httpGet: @@ -53,6 +55,8 @@ spec: runAsUser: 10000 runAsGroup: 10000 volumes: + - name: tmp-dir + emptyDir: { } {{- include "extensionlib.deployment.volumes" (list .) | nindent 8 }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/steadybit-extension-postman/tests/__snapshot__/deployment_test.yaml.snap b/charts/steadybit-extension-postman/tests/__snapshot__/deployment_test.yaml.snap index d4ac908..a07c15f 100644 --- a/charts/steadybit-extension-postman/tests/__snapshot__/deployment_test.yaml.snap +++ b/charts/steadybit-extension-postman/tests/__snapshot__/deployment_test.yaml.snap @@ -50,10 +50,14 @@ manifest should match snapshot with TLS: runAsNonRoot: true runAsUser: 10000 volumeMounts: + - mountPath: /tmp + name: tmp-dir - mountPath: /etc/extension/certificates/server-cert name: certificate-server-cert readOnly: true volumes: + - emptyDir: {} + name: tmp-dir - name: certificate-server-cert secret: optional: false @@ -112,8 +116,12 @@ manifest should match snapshot with extra env vars: runAsGroup: 10000 runAsNonRoot: true runAsUser: 10000 - volumeMounts: null - volumes: null + volumeMounts: + - mountPath: /tmp + name: tmp-dir + volumes: + - emptyDir: {} + name: tmp-dir manifest should match snapshot with mutual TLS: 1: | apiVersion: apps/v1 @@ -168,6 +176,8 @@ manifest should match snapshot with mutual TLS: runAsNonRoot: true runAsUser: 10000 volumeMounts: + - mountPath: /tmp + name: tmp-dir - mountPath: /etc/extension/certificates/client-cert-a name: certificate-client-cert-a readOnly: true @@ -175,6 +185,8 @@ manifest should match snapshot with mutual TLS: name: certificate-server-cert readOnly: true volumes: + - emptyDir: {} + name: tmp-dir - name: certificate-client-cert-a secret: optional: false @@ -230,5 +242,9 @@ manifest should match snapshot without TLS: runAsGroup: 10000 runAsNonRoot: true runAsUser: 10000 - volumeMounts: null - volumes: null + volumeMounts: + - mountPath: /tmp + name: tmp-dir + volumes: + - emptyDir: {} + name: tmp-dir