mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Graduating ServiceAppProtocol to beta
This commit is contained in:
parent
0c9245a29f
commit
0493a30805
4
api/openapi-spec/swagger.json
generated
4
api/openapi-spec/swagger.json
generated
@ -5956,7 +5956,7 @@
|
|||||||
"description": "EndpointPort is a tuple that describes a single port.",
|
"description": "EndpointPort is a tuple that describes a single port.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"appProtocol": {
|
"appProtocol": {
|
||||||
"description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. Field can be enabled with ServiceAppProtocol feature gate.",
|
"description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
@ -9860,7 +9860,7 @@
|
|||||||
"description": "ServicePort contains information on service's port.",
|
"description": "ServicePort contains information on service's port.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"appProtocol": {
|
"appProtocol": {
|
||||||
"description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. Field can be enabled with ServiceAppProtocol feature gate.",
|
"description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default.",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
|
@ -3560,7 +3560,8 @@ type ServicePort struct {
|
|||||||
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
// Non-standard protocols should use prefixed names such as
|
// Non-standard protocols should use prefixed names such as
|
||||||
// mycompany.com/my-custom-protocol.
|
// mycompany.com/my-custom-protocol.
|
||||||
// Field can be enabled with ServiceAppProtocol feature gate.
|
// This is a beta field that is guarded by the ServiceAppProtocol feature
|
||||||
|
// gate and enabled by default.
|
||||||
// +optional
|
// +optional
|
||||||
AppProtocol *string
|
AppProtocol *string
|
||||||
|
|
||||||
@ -3711,7 +3712,8 @@ type EndpointPort struct {
|
|||||||
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
// Non-standard protocols should use prefixed names such as
|
// Non-standard protocols should use prefixed names such as
|
||||||
// mycompany.com/my-custom-protocol.
|
// mycompany.com/my-custom-protocol.
|
||||||
// Field can be enabled with ServiceAppProtocol feature gate.
|
// This is a beta field that is guarded by the ServiceAppProtocol feature
|
||||||
|
// gate and enabled by default.
|
||||||
// +optional
|
// +optional
|
||||||
AppProtocol *string
|
AppProtocol *string
|
||||||
}
|
}
|
||||||
|
@ -541,6 +541,7 @@ const (
|
|||||||
|
|
||||||
// owner: @robscott
|
// owner: @robscott
|
||||||
// alpha: v1.18
|
// alpha: v1.18
|
||||||
|
// beta: v1.19
|
||||||
//
|
//
|
||||||
// Enables AppProtocol field for Services and Endpoints.
|
// Enables AppProtocol field for Services and Endpoints.
|
||||||
ServiceAppProtocol featuregate.Feature = "ServiceAppProtocol"
|
ServiceAppProtocol featuregate.Feature = "ServiceAppProtocol"
|
||||||
@ -661,7 +662,7 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS
|
|||||||
AllowInsecureBackendProxy: {Default: true, PreRelease: featuregate.Beta},
|
AllowInsecureBackendProxy: {Default: true, PreRelease: featuregate.Beta},
|
||||||
PodDisruptionBudget: {Default: true, PreRelease: featuregate.Beta},
|
PodDisruptionBudget: {Default: true, PreRelease: featuregate.Beta},
|
||||||
ServiceTopology: {Default: false, PreRelease: featuregate.Alpha},
|
ServiceTopology: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
ServiceAppProtocol: {Default: false, PreRelease: featuregate.Alpha},
|
ServiceAppProtocol: {Default: true, PreRelease: featuregate.Beta},
|
||||||
ImmutableEphemeralVolumes: {Default: false, PreRelease: featuregate.Alpha},
|
ImmutableEphemeralVolumes: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
DefaultIngressClass: {Default: true, PreRelease: featuregate.Beta},
|
DefaultIngressClass: {Default: true, PreRelease: featuregate.Beta},
|
||||||
HugePageStorageMediumSize: {Default: false, PreRelease: featuregate.Alpha},
|
HugePageStorageMediumSize: {Default: false, PreRelease: featuregate.Alpha},
|
||||||
|
@ -1055,7 +1055,8 @@ message EndpointPort {
|
|||||||
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
// Non-standard protocols should use prefixed names such as
|
// Non-standard protocols should use prefixed names such as
|
||||||
// mycompany.com/my-custom-protocol.
|
// mycompany.com/my-custom-protocol.
|
||||||
// Field can be enabled with ServiceAppProtocol feature gate.
|
// This is a beta field that is guarded by the ServiceAppProtocol feature
|
||||||
|
// gate and enabled by default.
|
||||||
// +optional
|
// +optional
|
||||||
optional string appProtocol = 4;
|
optional string appProtocol = 4;
|
||||||
}
|
}
|
||||||
@ -4646,7 +4647,8 @@ message ServicePort {
|
|||||||
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
// Non-standard protocols should use prefixed names such as
|
// Non-standard protocols should use prefixed names such as
|
||||||
// mycompany.com/my-custom-protocol.
|
// mycompany.com/my-custom-protocol.
|
||||||
// Field can be enabled with ServiceAppProtocol feature gate.
|
// This is a beta field that is guarded by the ServiceAppProtocol feature
|
||||||
|
// gate and enabled by default.
|
||||||
// +optional
|
// +optional
|
||||||
optional string appProtocol = 6;
|
optional string appProtocol = 6;
|
||||||
|
|
||||||
|
@ -4027,7 +4027,8 @@ type ServicePort struct {
|
|||||||
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
// Non-standard protocols should use prefixed names such as
|
// Non-standard protocols should use prefixed names such as
|
||||||
// mycompany.com/my-custom-protocol.
|
// mycompany.com/my-custom-protocol.
|
||||||
// Field can be enabled with ServiceAppProtocol feature gate.
|
// This is a beta field that is guarded by the ServiceAppProtocol feature
|
||||||
|
// gate and enabled by default.
|
||||||
// +optional
|
// +optional
|
||||||
AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,6,opt,name=appProtocol"`
|
AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,6,opt,name=appProtocol"`
|
||||||
|
|
||||||
@ -4253,7 +4254,8 @@ type EndpointPort struct {
|
|||||||
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
// RFC-6335 and http://www.iana.org/assignments/service-names).
|
||||||
// Non-standard protocols should use prefixed names such as
|
// Non-standard protocols should use prefixed names such as
|
||||||
// mycompany.com/my-custom-protocol.
|
// mycompany.com/my-custom-protocol.
|
||||||
// Field can be enabled with ServiceAppProtocol feature gate.
|
// This is a beta field that is guarded by the ServiceAppProtocol feature
|
||||||
|
// gate and enabled by default.
|
||||||
// +optional
|
// +optional
|
||||||
AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,4,opt,name=appProtocol"`
|
AppProtocol *string `json:"appProtocol,omitempty" protobuf:"bytes,4,opt,name=appProtocol"`
|
||||||
}
|
}
|
||||||
|
@ -506,7 +506,7 @@ var map_EndpointPort = map[string]string{
|
|||||||
"name": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.",
|
"name": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.",
|
||||||
"port": "The port number of the endpoint.",
|
"port": "The port number of the endpoint.",
|
||||||
"protocol": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.",
|
"protocol": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.",
|
||||||
"appProtocol": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. Field can be enabled with ServiceAppProtocol feature gate.",
|
"appProtocol": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (EndpointPort) SwaggerDoc() map[string]string {
|
func (EndpointPort) SwaggerDoc() map[string]string {
|
||||||
@ -2174,7 +2174,7 @@ var map_ServicePort = map[string]string{
|
|||||||
"": "ServicePort contains information on service's port.",
|
"": "ServicePort contains information on service's port.",
|
||||||
"name": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
|
"name": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
|
||||||
"protocol": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.",
|
"protocol": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.",
|
||||||
"appProtocol": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. Field can be enabled with ServiceAppProtocol feature gate.",
|
"appProtocol": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default.",
|
||||||
"port": "The port that will be exposed by this service.",
|
"port": "The port that will be exposed by this service.",
|
||||||
"targetPort": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service",
|
"targetPort": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service",
|
||||||
"nodePort": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport",
|
"nodePort": "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport",
|
||||||
|
Loading…
Reference in New Issue
Block a user