Skip to content

Commit

Permalink
Merge pull request #115138 from danwinship/kep-3453-beta
Browse files Browse the repository at this point in the history
Move KEP-3453 MinimizeIPTablesRestore to beta
  • Loading branch information
k8s-ci-robot committed Jan 31, 2023
2 parents 4df9458 + 4aec2b8 commit 423f62d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/features/kube_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ const (
// owner: @danwinship
// kep: http://kep.k8s.io/3453
// alpha: v1.26
// beta: v1.27
//
// Enables new performance-improving code in kube-proxy iptables mode
MinimizeIPTablesRestore featuregate.Feature = "MinimizeIPTablesRestore"
Expand Down Expand Up @@ -983,7 +984,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS

MinDomainsInPodTopologySpread: {Default: true, PreRelease: featuregate.Beta},

MinimizeIPTablesRestore: {Default: false, PreRelease: featuregate.Alpha},
MinimizeIPTablesRestore: {Default: true, PreRelease: featuregate.Beta},

MixedProtocolLBService: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.28

Expand Down
5 changes: 3 additions & 2 deletions pkg/proxy/iptables/proxier.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func NewProxier(ipFamily v1.IPFamily,
serviceChanges: proxy.NewServiceChangeTracker(newServiceInfo, ipFamily, recorder, nil),
endpointsMap: make(proxy.EndpointsMap),
endpointsChanges: proxy.NewEndpointChangeTracker(hostname, newEndpointInfo, ipFamily, recorder, nil),
needFullSync: true,
syncPeriod: syncPeriod,
iptables: ipt,
masqueradeAll: masqueradeAll,
Expand Down Expand Up @@ -538,7 +539,7 @@ func (proxier *Proxier) OnServiceSynced() {
proxier.mu.Unlock()

// Sync unconditionally - this is called once per lifetime.
proxier.forceSyncProxyRules()
proxier.syncProxyRules()
}

// OnEndpointSliceAdd is called whenever creation of a new endpoint slice object
Expand Down Expand Up @@ -574,7 +575,7 @@ func (proxier *Proxier) OnEndpointSlicesSynced() {
proxier.mu.Unlock()

// Sync unconditionally - this is called once per lifetime.
proxier.forceSyncProxyRules()
proxier.syncProxyRules()
}

// OnNodeAdd is called whenever creation of new node object
Expand Down
1 change: 1 addition & 0 deletions pkg/proxy/iptables/proxier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ func NewFakeProxier(ipt utiliptables.Interface) *Proxier {
serviceChanges: proxy.NewServiceChangeTracker(newServiceInfo, ipfamily, nil, nil),
endpointsMap: make(proxy.EndpointsMap),
endpointsChanges: proxy.NewEndpointChangeTracker(testHostname, newEndpointInfo, ipfamily, nil, nil),
needFullSync: true,
iptables: ipt,
masqueradeMark: "0x4000",
localDetector: detectLocal,
Expand Down

0 comments on commit 423f62d

Please sign in to comment.