aboutsummaryrefslogtreecommitdiff
path: root/flagfolder/testpod.yml
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-05-17 07:20:23 -0500
committerXe Iaso <me@xeiaso.net>2024-05-17 07:28:19 -0500
commit7ce28bfc8ac4f306196bacbc4ff06671e8a58654 (patch)
treeac0b266643e83333257e9bf5c04df6e425b0445d /flagfolder/testpod.yml
parentf22aa000db6e91f0fb59f4728bdbda0aa40f475d (diff)
downloadx-7ce28bfc8ac4f306196bacbc4ff06671e8a58654.tar.xz
x-7ce28bfc8ac4f306196bacbc4ff06671e8a58654.zip
internal: add package flagfolder to populate FlagSets with a secret mount
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'flagfolder/testpod.yml')
-rw-r--r--flagfolder/testpod.yml31
1 files changed, 31 insertions, 0 deletions
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