File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
hack/generate/samples/internal/ansible
testdata/ansible/memcached-operator/roles/memcached/tasks Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ const roleFragment = `
26
26
labels:
27
27
app: memcached
28
28
spec:
29
+ securityContext:
30
+ runAsNonRoot: true
31
+ seccompProfile:
32
+ type: RuntimeDefault
29
33
replicas: "{{size}}"
30
34
selector:
31
35
matchLabels:
@@ -37,6 +41,11 @@ const roleFragment = `
37
41
spec:
38
42
containers:
39
43
- name: memcached
44
+ securityContext:
45
+ allowPrivilegeEscalation: false
46
+ capabilities:
47
+ drop:
48
+ - "ALL"
40
49
command:
41
50
- memcached
42
51
- -m=64
Original file line number Diff line number Diff line change 11
11
labels :
12
12
app : memcached
13
13
spec :
14
+ securityContext :
15
+ runAsNonRoot : true
16
+ seccompProfile :
17
+ type : RuntimeDefault
14
18
replicas : " {{size}}"
15
19
selector :
16
20
matchLabels :
22
26
spec :
23
27
containers :
24
28
- name : memcached
29
+ securityContext :
30
+ allowPrivilegeEscalation : false
31
+ capabilities :
32
+ drop :
33
+ - " ALL"
25
34
command :
26
35
- memcached
27
36
- -m=64
You can’t perform that action at this time.
0 commit comments