mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
KEP-3866 kube-proxy nftables mode to beta
This commit is contained in:
parent
2f2c1fb811
commit
fdf22533a8
@ -525,6 +525,7 @@ const (
|
|||||||
// owner: @danwinship
|
// owner: @danwinship
|
||||||
// kep: https://kep.k8s.io/3866
|
// kep: https://kep.k8s.io/3866
|
||||||
// alpha: v1.29
|
// alpha: v1.29
|
||||||
|
// beta: v1.31
|
||||||
//
|
//
|
||||||
// Allows running kube-proxy with `--mode nftables`.
|
// Allows running kube-proxy with `--mode nftables`.
|
||||||
NFTablesProxyMode featuregate.Feature = "NFTablesProxyMode"
|
NFTablesProxyMode featuregate.Feature = "NFTablesProxyMode"
|
||||||
@ -1131,7 +1132,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
|
|
||||||
NewVolumeManagerReconstruction: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.32
|
NewVolumeManagerReconstruction: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.32
|
||||||
|
|
||||||
NFTablesProxyMode: {Default: false, PreRelease: featuregate.Alpha},
|
NFTablesProxyMode: {Default: true, PreRelease: featuregate.Beta},
|
||||||
|
|
||||||
NodeLogQuery: {Default: false, PreRelease: featuregate.Beta},
|
NodeLogQuery: {Default: false, PreRelease: featuregate.Beta},
|
||||||
|
|
||||||
|
@ -827,7 +827,7 @@ func TestValidateKubeProxyConntrackConfiguration(t *testing.T) {
|
|||||||
func TestValidateProxyMode(t *testing.T) {
|
func TestValidateProxyMode(t *testing.T) {
|
||||||
newPath := field.NewPath("KubeProxyConfiguration")
|
newPath := field.NewPath("KubeProxyConfiguration")
|
||||||
successCases := []kubeproxyconfig.ProxyMode{""}
|
successCases := []kubeproxyconfig.ProxyMode{""}
|
||||||
expectedNonExistentErrorMsg := "must be iptables, ipvs or blank (blank means the best-available proxy [currently iptables])"
|
expectedNonExistentErrorMsg := "must be iptables, ipvs, nftables or blank (blank means the best-available proxy [currently iptables])"
|
||||||
|
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
successCases = append(successCases, kubeproxyconfig.ProxyModeKernelspace)
|
successCases = append(successCases, kubeproxyconfig.ProxyModeKernelspace)
|
||||||
|
Loading…
Reference in New Issue
Block a user