Skip to content

Commit d9a08c5

Browse files
aojeak8s-publishing-bot
authored andcommitted
tag service.spec.TrafficDistribution field as alpha
Kubernetes-commit: d17cd6ef75c4b6f9a8a0ed0aa20ea9aa99b96e44
1 parent a669f18 commit d9a08c5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

core/v1/generated.proto

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/v1/types.go

+2
Original file line numberDiff line numberDiff line change
@@ -5367,6 +5367,8 @@ type ServiceSpec struct {
53675367
// not set, the implementation will apply its default routing strategy. If set
53685368
// to "PreferClose", implementations should prioritize endpoints that are
53695369
// topologically close (e.g., same zone).
5370+
// This is an alpha field and requires enabling ServiceTrafficDistribution feature.
5371+
// +featureGate=ServiceTrafficDistribution
53705372
// +optional
53715373
TrafficDistribution *string `json:"trafficDistribution,omitempty" protobuf:"bytes,23,opt,name=trafficDistribution"`
53725374
}

core/v1/types_swagger_doc_generated.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ var map_ServiceSpec = map[string]string{
24202420
"allocateLoadBalancerNodePorts": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.",
24212421
"loadBalancerClass": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.",
24222422
"internalTrafficPolicy": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).",
2423-
"trafficDistribution": "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone).",
2423+
"trafficDistribution": "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.",
24242424
}
24252425

24262426
func (ServiceSpec) SwaggerDoc() map[string]string {

0 commit comments

Comments
 (0)