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 ...@@ -98,7 +98,7 @@ module Clusters
"args" => [ "args" => [
"/bin/sh", "/bin/sh",
"-c", "-c",
"tail -f /var/log/modsec/audit.log" "tail -F /var/log/modsec/audit.log"
], ],
"volumeMounts" => [ "volumeMounts" => [
{ {
......
...@@ -220,6 +220,12 @@ describe Clusters::Applications::Ingress do ...@@ -220,6 +220,12 @@ describe Clusters::Applications::Ingress do
expect(subject.values).to include('extraContainers') expect(subject.values).to include('extraContainers')
end 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 it 'includes livenessProbe for modsecurity sidecar container' do
probe_config = YAML.safe_load(subject.values).dig('controller', 'extraContainers', 0, 'livenessProbe') 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