private boolean getBooleanAnnotation(final V1Ingress ingress, final String annotationKey) {
        String annotationValue = ingress.getMetadata().getAnnotations().get(annotationKey);
        return Objects.nonNull(annotationValue) && Boolean.parseBoolean(annotationValue);
    }
Parse ingress to ShenyuMemoryConfig.

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