mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Merge pull request #35681 from vincentheet/issue-35677
Automatic merge from submit-queue Change stickyMaxAge from seconds to minutes, fixes issue #35677 **What this PR does / why we need it**: Increases the service sessionAfinity time from 180 seconds to 180 minutes for proxy mode iptables which was a bug introduced in a refactor. **Which issue this PR fixes**: fixes #35677 **Special notes for your reviewer**: **Release note**: ``` release-note Fixed wrong service sessionAffinity stickiness time from 180 sec to 180 minutes in proxy mode iptables. ``` Since there is no test for the sessionAffinity feature at the moment I wanted to create one but I don't know how.
This commit is contained in:
@@ -260,7 +260,7 @@ func TestExecConntrackTool(t *testing.T) {
|
||||
func newFakeServiceInfo(service proxy.ServicePortName, ip net.IP, protocol api.Protocol, onlyNodeLocalEndpoints bool) *serviceInfo {
|
||||
return &serviceInfo{
|
||||
sessionAffinityType: api.ServiceAffinityNone, // default
|
||||
stickyMaxAgeSeconds: 180, // TODO: paramaterize this in the API.
|
||||
stickyMaxAgeMinutes: 180, // TODO: paramaterize this in the API.
|
||||
clusterIP: ip,
|
||||
protocol: protocol,
|
||||
onlyNodeLocalEndpoints: onlyNodeLocalEndpoints,
|
||||
|
||||
Reference in New Issue
Block a user