Skip to content

Commit

Permalink
[nats helm] call natsbox entrypoint
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Lloyd <caleb@synadia.com>
  • Loading branch information
Caleb Lloyd committed Apr 1, 2024
1 parent 39f2242 commit 665342d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion helm/charts/nats/files/nats-box/deployment/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ command:
fi
{{- end }}
cd "$work_dir"
exec sh -ec "$0"
exec /entrypoint.sh "$0" "$@"
args:
- sh
- -ec
- trap true INT TERM; sleep infinity & wait
volumeMounts:
# contexts secret
Expand Down
4 changes: 3 additions & 1 deletion helm/charts/nats/test/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ func DefaultResources(t *testing.T, test *Test) *Resources {
Containers: []corev1.Container{
{
Args: []string{
"sh",
"-ec",
"trap true INT TERM; sleep infinity & wait",
},
Command: []string{
Expand All @@ -299,7 +301,7 @@ if ! [ -f context.txt ]; then
echo -n "default" > context.txt
fi
cd "$work_dir"
exec sh -ec "$0"
exec /entrypoint.sh "$0" "$@"
`,
},
Image: dd.NatsBoxImage,
Expand Down

0 comments on commit 665342d

Please sign in to comment.