From 07c645440b36b13704af8f7675fa244c8fcd4438 Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Tue, 25 Jan 2022 16:30:51 +0000 Subject: [PATCH] Improve the service-certificate test (#324) Add checks for the TLS_DIR env var and the certificate volume mount --- .../scorecard/kuttl/service-certificate/01-assert.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bundle/tests/scorecard/kuttl/service-certificate/01-assert.yaml b/bundle/tests/scorecard/kuttl/service-certificate/01-assert.yaml index f692c66ba..f1e67a7d7 100644 --- a/bundle/tests/scorecard/kuttl/service-certificate/01-assert.yaml +++ b/bundle/tests/scorecard/kuttl/service-certificate/01-assert.yaml @@ -9,6 +9,14 @@ status: spec: template: spec: + containers: + - env: + - name: TLS_DIR + value: /etc/x509/certs + volumeMounts: + - name: svc-certificate + mountPath: /etc/x509/certs + readOnly: true volumes: - name: svc-certificate secret: