Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
20897ebc
Commit
20897ebc
authored
Feb 25, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase lease timeout for CheckIngressIpAddressService to reduce polling frequency (#42643)
parent
636e2856
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/services/clusters/applications/check_ingress_ip_address_service.rb
...clusters/applications/check_ingress_ip_address_service.rb
+1
-1
spec/services/clusters/applications/check_ingress_ip_address_service_spec.rb
...ers/applications/check_ingress_ip_address_service_spec.rb
+1
-1
No files found.
app/services/clusters/applications/check_ingress_ip_address_service.rb
View file @
20897ebc
...
...
@@ -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
...
...
spec/services/clusters/applications/check_ingress_ip_address_service_spec.rb
View file @
20897ebc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment