mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Add appProtocol to EndpointSlice.Port
This commit is contained in:
@@ -143,6 +143,12 @@ func validatePorts(endpointPorts []discovery.EndpointPort, fldPath *field.Path)
|
||||
} else if !supportedPortProtocols.Has(string(*endpointPort.Protocol)) {
|
||||
allErrs = append(allErrs, field.NotSupported(idxPath.Child("protocol"), *endpointPort.Protocol, supportedPortProtocols.List()))
|
||||
}
|
||||
|
||||
if endpointPort.AppProtocol != nil {
|
||||
for _, msg := range validation.IsQualifiedName(*endpointPort.AppProtocol) {
|
||||
allErrs = append(allErrs, field.Invalid(idxPath.Child("appProtocol"), endpointPort.AppProtocol, msg))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return allErrs
|
||||
|
||||
Reference in New Issue
Block a user