wmedvede commented on code in PR #283:
URL:
https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/283#discussion_r1390838975
##########
utils/kubernetes/service.go:
##########
@@ -42,3 +42,18 @@ func RetrieveServiceURL(service *v1.Service) (*apis.URL,
error) {
Path: service.Name}
return apis.ParseURL(url.String())
}
+
+// GetServicePortByName returns a pointer to the ServicePort within the given
Service.
+// If none found, returns nil.
+// It also returns the position where the service port por was found, -1 if
none.
+func GetServicePortByName(name string, service *v1.Service) (*v1.ServicePort,
int) {
+ if service == nil {
Review Comment:
More or less the same here, same kind of function tries to follow same
pattern.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]