Missing validation for Service.Spec.Ports.TargetPort #9734
Labels
priority/backlog
Higher priority than priority/awaiting-more-evidence.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
Milestone
Original openshift issue openshift/origin#3143
If Service.Spec.Ports.TargetPort is defined as
string
there's no validation on this.The user could write something like (
targetPort
with""
)and the final results could be no endpoints for the service.
Some kind of validation with some syntax check should be introduced (for example https://tools.ietf.org/html/rfc6335#section-5.1)
I'm submitting a PR to add some validation.
The text was updated successfully, but these errors were encountered: