Skip to content

Commit

Permalink
UPSTREAM: <carry>: Increase service idle max timeout to 100 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Aug 4, 2023
1 parent 73ac561 commit 6f196d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ func getDomainNameLabel(pip *network.PublicIPAddress) string {
func getIdleTimeout(s *v1.Service) (*int32, error) {
const (
min = 4
max = 30
max = 100
)

val, ok := s.Annotations[ServiceAnnotationLoadBalancerIdleTimeout]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func TestGetIdleTimeout(t *testing.T) {
{desc: "annotation negative value", annotations: map[string]string{ServiceAnnotationLoadBalancerIdleTimeout: "-6"}, err: true},
{desc: "annotation zero value", annotations: map[string]string{ServiceAnnotationLoadBalancerIdleTimeout: "0"}, err: true},
{desc: "annotation too low value", annotations: map[string]string{ServiceAnnotationLoadBalancerIdleTimeout: "3"}, err: true},
{desc: "annotation too high value", annotations: map[string]string{ServiceAnnotationLoadBalancerIdleTimeout: "31"}, err: true},
{desc: "annotation too high value", annotations: map[string]string{ServiceAnnotationLoadBalancerIdleTimeout: "101"}, err: true},
{desc: "annotation good value", annotations: map[string]string{ServiceAnnotationLoadBalancerIdleTimeout: "24"}, i: to.Int32Ptr(24)},
} {
t.Run(c.desc, func(t *testing.T) {
Expand Down

0 comments on commit 6f196d2

Please sign in to comment.