Skip to content

Commit ec66781

Browse files
author
Michael Chmielewski
committed
Change where the unset occurs
1 parent 136c5b9 commit ec66781

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

templates/daemonset.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ spec:
102102
- >-
103103
eval "tsagent setup --deploy-key $THREATSTACK_SETUP_DEPLOY_KEY $THREATSTACK_SETUP_ARGS" &&
104104
tsagent config --set $THREATSTACK_CONFIG_ARGS &&
105-
exec /opt/threatstack/sbin/tsagentd -logstdout=1 &&
106-
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS
105+
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS &&
106+
exec /opt/threatstack/sbin/tsagentd -logstdout=1
107107
{{- end }}
108108
{{- if .Values.daemonset.livenessProbe }}
109109
livenessProbe:

templates/deployment-api-reader.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ spec:
9494
- >-
9595
eval "tsagent setup --deploy-key $THREATSTACK_SETUP_DEPLOY_KEY $THREATSTACK_SETUP_ARGS" &&
9696
tsagent config --set $THREATSTACK_CONFIG_ARGS &&
97-
exec /opt/threatstack/sbin/tsagentd -logstdout=1 &&
98-
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS
97+
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS &&
98+
exec /opt/threatstack/sbin/tsagentd -logstdout=1
9999
{{- if .Values.apiReader.livenessProbe }}
100100
livenessProbe:
101101
{{ toYaml .Values.apiReader.livenessProbe | indent 10 }}

values.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ gkeContainerOsCmd:
4040
systemctl mask systemd-journald-audit.socket;
4141
systemctl restart systemd-journald; auditctl --backlog_wait_time 0' &&
4242
eval tsagent setup --deploy-key $THREATSTACK_SETUP_DEPLOY_KEY $THREATSTACK_SETUP_ARGS &&
43-
eval tsagent config --set $THREATSTACK_CONFIG_ARGS && sleep 5 && exec /opt/threatstack/sbin/tsagentd -logstdout=1 &&
44-
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS
43+
eval tsagent config --set $THREATSTACK_CONFIG_ARGS &&
44+
sleep 5 &&
45+
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS &&
46+
exec /opt/threatstack/sbin/tsagentd -logstdout=1
4547
4648
# Using Ubuntu nodes
4749
gkeUbuntu: false
@@ -54,8 +56,8 @@ gkeUbuntuCmd:
5456
eval tsagent setup --deploy-key $THREATSTACK_SETUP_DEPLOY_KEY $THREATSTACK_SETUP_ARGS &&
5557
eval tsagent config --set $THREATSTACK_CONFIG_ARGS &&
5658
sleep 5 &&
57-
exec /opt/threatstack/sbin/tsagentd -logstdout=1 &&
58-
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS
59+
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS &&
60+
exec /opt/threatstack/sbin/tsagentd -logstdout=1
5961
6062
# Using EKS Amazon Linux 2 nodes
6163
eksAmazon2: false
@@ -68,8 +70,8 @@ eksAmazon2Cmd:
6870
eval tsagent setup --deploy-key $THREATSTACK_SETUP_DEPLOY_KEY $THREATSTACK_SETUP_ARGS &&
6971
eval tsagent config --set $THREATSTACK_CONFIG_ARGS &&
7072
sleep 5 &&
71-
exec /opt/threatstack/sbin/tsagentd -logstdout=1 &&
72-
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS
73+
unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS &&
74+
exec /opt/threatstack/sbin/tsagentd -logstdout=1
7375
7476
# Uncomment the command and args sub-attributes, and define them as desired to run custom commands in the Daemonset.
7577
#
@@ -86,8 +88,8 @@ customDaemonsetCmd: {}
8688
# eval tsagent setup --deploy-key $THREATSTACK_SETUP_DEPLOY_KEY $THREATSTACK_SETUP_ARGS &&
8789
# eval tsagent config --set $THREATSTACK_CONFIG_ARGS &&
8890
# sleep 5 &&
89-
# /opt/threatstack/sbin/tsagentd -logstdout=1 &&
90-
# unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS
91+
# unset THREATSTACK_SETUP_DEPLOY_KEY THREATSTACK_SETUP_ARGS THREATSTACK_CONFIG_ARGS &&
92+
# /opt/threatstack/sbin/tsagentd -logstdout=1
9193

9294
# Using OpenShift
9395
#

0 commit comments

Comments
 (0)