debug
should use existing containerPort definitions in selecting debug port
#4463
Labels
area/debug
kind/feature-request
priority/awaiting-more-evidence
Lowest Priority. May be useful, but there is not yet enough supporting evidence.
debug
currently selects a port that is as close to the default used by each language runtime's debugger. We should examine the container'scontainerPort
s for an existing definition and use that port if found.. The Kubernetes API defines the
containerPort.name
as beingIANA_SVC_NAME
, and must be unique within the pod. A service name is defined in RFC 6335 as:As containers within a pod must have unique port names, we should use the debug protocol as a prefix (e.g., look for something matching
jdwp(-.+)?
).Motivated by discsussion in #4419.
The text was updated successfully, but these errors were encountered: