Commit 20897ebc authored by Dylan Griffith's avatar Dylan Griffith

Increase lease timeout for CheckIngressIpAddressService to reduce polling frequency (#42643)

parent 636e2856
......@@ -5,7 +5,7 @@ module Clusters
Error = Class.new(StandardError)
LEASE_TIMEOUT = 3.seconds.to_i
LEASE_TIMEOUT = 15.seconds.to_i
def execute
return if app.external_ip
......
......@@ -25,7 +25,7 @@ describe Clusters::Applications::CheckIngressIpAddressService do
allow(application.cluster).to receive(:kubeclient).and_return(kubeclient)
allow(Gitlab::ExclusiveLease)
.to receive(:new)
.with("check_ingress_ip_address_service:#{application.id}", timeout: 3.seconds.to_i)
.with("check_ingress_ip_address_service:#{application.id}", timeout: 15.seconds.to_i)
.and_return(exclusive_lease)
end
......
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