Promote endPort field in netpolicies to beta

Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
This commit is contained in:
Ricardo Pchevuzinske Katz 2021-06-13 17:14:02 -03:00
parent 36896f9cab
commit 9f18ddf03c
4 changed files with 8 additions and 7 deletions

View File

@ -149,8 +149,8 @@ type NetworkPolicyPort struct {
// should be allowed by the policy. This field cannot be defined if the port field // should be allowed by the policy. This field cannot be defined if the port field
// is not defined or if the port field is defined as a named (string) port. // is not defined or if the port field is defined as a named (string) port.
// The endPort must be equal or greater than port. // The endPort must be equal or greater than port.
// This feature is in Alpha state and should be enabled using the Feature Gate // This feature is in Beta state and is enabled by default.
// "NetworkPolicyEndPort". // It can be disabled using the Feature Gate "NetworkPolicyEndPort".
// +optional // +optional
EndPort *int32 EndPort *int32
} }

View File

@ -254,6 +254,7 @@ const (
// owner: @rikatz // owner: @rikatz
// kep: http://kep.k8s.io/2079 // kep: http://kep.k8s.io/2079
// alpha: v1.21 // alpha: v1.21
// beta: v1.22
// //
// Enables the endPort field in NetworkPolicy to enable a Port Range behavior in Network Policies. // Enables the endPort field in NetworkPolicy to enable a Port Range behavior in Network Policies.
NetworkPolicyEndPort featuregate.Feature = "NetworkPolicyEndPort" NetworkPolicyEndPort featuregate.Feature = "NetworkPolicyEndPort"
@ -781,7 +782,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
CSIVolumeFSGroupPolicy: {Default: true, PreRelease: featuregate.Beta}, CSIVolumeFSGroupPolicy: {Default: true, PreRelease: featuregate.Beta},
RuntimeClass: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.23 RuntimeClass: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.23
NodeLease: {Default: true, PreRelease: featuregate.GA, LockToDefault: true}, NodeLease: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},
NetworkPolicyEndPort: {Default: false, PreRelease: featuregate.Alpha}, NetworkPolicyEndPort: {Default: true, PreRelease: featuregate.Beta},
ProcMountType: {Default: false, PreRelease: featuregate.Alpha}, ProcMountType: {Default: false, PreRelease: featuregate.Alpha},
TTLAfterFinished: {Default: true, PreRelease: featuregate.Beta}, TTLAfterFinished: {Default: true, PreRelease: featuregate.Beta},
IndexedJob: {Default: true, PreRelease: featuregate.Beta}, IndexedJob: {Default: true, PreRelease: featuregate.Beta},

View File

@ -1493,8 +1493,8 @@ type NetworkPolicyPort struct {
// should be allowed by the policy. This field cannot be defined if the port field // should be allowed by the policy. This field cannot be defined if the port field
// is not defined or if the port field is defined as a named (string) port. // is not defined or if the port field is defined as a named (string) port.
// The endPort must be equal or greater than port. // The endPort must be equal or greater than port.
// This feature is in Alpha state and should be enabled using the Feature Gate // This feature is in Beta state and is enabled by default.
// "NetworkPolicyEndPort". // It can be disabled using the Feature Gate "NetworkPolicyEndPort".
// +optional // +optional
EndPort *int32 `json:"endPort,omitempty" protobuf:"bytes,3,opt,name=endPort"` EndPort *int32 `json:"endPort,omitempty" protobuf:"bytes,3,opt,name=endPort"`
} }

View File

@ -152,8 +152,8 @@ type NetworkPolicyPort struct {
// should be allowed by the policy. This field cannot be defined if the port field // should be allowed by the policy. This field cannot be defined if the port field
// is not defined or if the port field is defined as a named (string) port. // is not defined or if the port field is defined as a named (string) port.
// The endPort must be equal or greater than port. // The endPort must be equal or greater than port.
// This feature is in Alpha state and should be enabled using the Feature Gate // This feature is in Beta state and is enabled by default.
// "NetworkPolicyEndPort". // It can be disabled using the Feature Gate "NetworkPolicyEndPort".
// +optional // +optional
EndPort *int32 `json:"endPort,omitempty" protobuf:"bytes,3,opt,name=endPort"` EndPort *int32 `json:"endPort,omitempty" protobuf:"bytes,3,opt,name=endPort"`
} }