private String parsePort(final V1IngressServiceBackend service) {
        V1ServiceBackendPort servicePort = service.getPort();
        if (Objects.nonNull(servicePort)) {
            Integer portNumber = servicePort.getNumber();
            if (Objects.nonNull(portNumber) && portNumber > 0) {
                return String.valueOf(portNumber);
            } else {
                String servicePortName = servicePort.getName();
                if (Objects.nonNull(servicePortName)) {
                    String trim = servicePortName.trim();
                    if (StringUtils.isNoneBlank(trim)) {
                        return trim;
                    }
                }
            }
        }
        return null;
    }
Parse ingress to ShenyuMemoryConfig.

@param ingress   ingress resource
@param coreV1Api coreV1Api
@return ShenyuMemoryConfig
shenyu-kubernetes-controller/src/main/java/org/apache/shenyu/k8s/parser/DubboIngressParser.java