Commit 315adb23 authored by Jarka Košanová's avatar Jarka Košanová

Merge branch '37127-change-command-on-modsecurity-log-container' into 'master'

Change args on modsecurity-log container to ignore file inaccessiblity

See merge request gitlab-org/gitlab!29909
parents 2dd92164 400ea587
......@@ -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