From 9956e4408b79b465e8ba9a92286f5bbab75d93c8 Mon Sep 17 00:00:00 2001 From: Markus Rudy Date: Thu, 21 Nov 2024 17:36:52 +0100 Subject: [PATCH] e2e: test ConfigMap mount --- e2e/regression/testdata/nginx.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/e2e/regression/testdata/nginx.yml b/e2e/regression/testdata/nginx.yml index 7d7d554d49..c5a3b9b669 100644 --- a/e2e/regression/testdata/nginx.yml +++ b/e2e/regression/testdata/nginx.yml @@ -18,4 +18,30 @@ spec: image: ghcr.io/edgelesssys/nginx-unprivileged@sha256:1d5be2aa3c296bd589ddd3c9bf2f560919e31ac32bae799a15dd182b6fdb042b ports: - containerPort: 8080 + volumeMounts: + - name: html + mountPath: /usr/share/nginx/html + readOnly: true + volumes: + - name: html + configMap: + name: nginx-html runtimeClassName: contrast-cc +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: nginx-html + namespace: "@@REPLACE_NAMESPACE@@" +data: + index.html: | +

Hello World

+ 1.html: "" + 2.html: "" + 3.html: "" + 4.html: "" + 5.html: "" + 6.html: "" + 7.html: "" + 8.html: "" + 9.html: ""