Commit 400ea587 authored by Alan Paruszewski's avatar Alan Paruszewski

Change args on modsecurity-log container to ignore file inaccessiblity

parent a256e32a
......@@ -98,7 +98,7 @@ module Clusters
"args" => [
"/bin/sh",
"-c",
"tail -f /var/log/modsec/audit.log"
"tail -F /var/log/modsec/audit.log"
],
"volumeMounts" => [
{
......
......@@ -220,6 +220,12 @@ describe Clusters::Applications::Ingress do
expect(subject.values).to include('extraContainers')
end
it 'executes command to tail modsecurity logs with -F option' do
args = YAML.safe_load(subject.values).dig('controller', 'extraContainers', 0, 'args')
expect(args).to eq(['/bin/sh', '-c', 'tail -F /var/log/modsec/audit.log'])
end
it 'includes livenessProbe for modsecurity sidecar container' do
probe_config = YAML.safe_load(subject.values).dig('controller', 'extraContainers', 0, 'livenessProbe')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment