Merge pull request #123487 from gauravkghildiyal/kep-4444

Introduce trafficDistribution field for Kubernetes Services
This commit is contained in:
Kubernetes Prow Robot
2024-03-04 20:07:15 -08:00
committed by GitHub
30 changed files with 2310 additions and 1024 deletions

View File

@@ -29512,6 +29512,13 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O
Enum: []interface{}{"Cluster", "Local"},
},
},
"trafficDistribution": {
SchemaProps: spec.SchemaProps{
Description: "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).",
Type: []string{"string"},
Format: "",
},
},
},
},
},