forked from raffaelespazzoli/openshift-modern-availability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-permissions.yaml
41 lines (41 loc) · 996 Bytes
/
test-permissions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: v1
kind: Secret
metadata:
name: test-secret-perms
stringData:
expect_0700: "should be 0700"
expect_0400: "should be 0400"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-secret-perms
spec:
replicas: 1
selector:
matchLabels:
app: test-secret-perms
template:
metadata:
labels:
app: test-secret-perms
spec:
containers:
- name: test
image: ubuntu
command: [ "sh", "-c", "while true; do ls -ldH /test/*; sleep 60; done" ]
volumeMounts:
- name: secret
mountPath: /test
volumes:
- name: secret
secret:
secretName: test-secret-perms
defaultMode: 256
items:
- key: "expect_0700"
path: "expect_0700"
mode: 448
- key: "expect_0400"
path: "expect_0400"
# no mode