Skip to content

Commit b8d9a89

Browse files
committed
Change function documentation
1 parent cebcc7a commit b8d9a89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/mode/static/state/graph/backend_refs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ func createBackendRef(
140140
return backendRef, nil
141141
}
142142

143-
// getServiceAndPortFromRef can return an error and an empty v1.ServicePort in two cases:
143+
// getServiceAndPortFromRef extracts the NamespacedName of the Service and the port from a BackendRef.
144+
// It can return an error and an empty v1.ServicePort in two cases:
144145
// 1. The Service referenced from the BackendRef does not exist in the cluster/state.
145146
// 2. The Port on the BackendRef does not match any of the ServicePorts on the Service.
146147
func getServiceAndPortFromRef(

0 commit comments

Comments
 (0)