From 7ce28bfc8ac4f306196bacbc4ff06671e8a58654 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 17 May 2024 07:20:23 -0500 Subject: internal: add package flagfolder to populate FlagSets with a secret mount Signed-off-by: Xe Iaso --- flagfolder/testpod.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 flagfolder/testpod.yml (limited to 'flagfolder/testpod.yml') diff --git a/flagfolder/testpod.yml b/flagfolder/testpod.yml new file mode 100644 index 0000000..392d629 --- /dev/null +++ b/flagfolder/testpod.yml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: Secret +metadata: + name: shell + namespace: default +data: + foo: Zm9v + bar: YmFy +--- +apiVersion: v1 +kind: Pod +metadata: + name: shell + namespace: default +spec: + volumes: + - name: secret-volume + secret: + secretName: shell + containers: + - name: shell + image: ubuntu:latest + command: + - sleep + - "infinity" + imagePullPolicy: IfNotPresent + volumeMounts: + - name: secret-volume + readOnly: true + mountPath: "/run/secrets/shell" + restartPolicy: Always -- cgit v1.2.3