Skip to content

Commit 0a5c5ab

Browse files
author
Dan Quackenbush
committed
🚚 move security context to values file
1 parent aff34c0 commit 0a5c5ab

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

templates/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ spec:
9999
name: {{ include "threatstack-agent.name" . }}-config-args
100100
key: config-args
101101
securityContext:
102-
privileged: false
102+
{{- toYaml .Values.daemonset.securityContext | nindent 10 }}
103103
capabilities:
104104
add: {{ .Values.capabilities | trim }}
105105
{{- if .Values.daemonset.resources }}

templates/deployment-api-reader.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ spec:
8282
name: {{ include "threatstack-agent.name" . }}-config-args
8383
key: kubernetes-api-config-args
8484
securityContext:
85-
privileged: false
85+
{{- toYaml .Values.apiReader.securityContext | nindent 10 }}
8686
capabilities:
8787
add: {{ .Values.capabilities | trim }}
8888
{{- if .Values.apiReader.resources }}

values.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ apiReader:
119119
# limits:
120120
# memory: "512Mi"
121121
# cpu: "400m"
122-
123122
# Override kubernetes api reader agent's default target nodes
124123
# Default is any node within the target namespace
125124
#
@@ -132,6 +131,9 @@ apiReader:
132131
# Optional
133132
tolerations: []
134133

134+
securityContext:
135+
privileged: false
136+
135137
########
136138
#
137139
# Threat Stack Agent Daemonset settings
@@ -240,4 +242,7 @@ daemonset:
240242
# bar
241243
# the end
242244
#
243-
customLuaFilter: ""
245+
customLuaFilter: ""
246+
247+
securityContext:
248+
privileged: false

0 commit comments

Comments
 (0)