new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/Ingress.java
public static List<String> listIngresses(String namespace) throws ApiException {

    List<String> ingressNames = new ArrayList<>();
    NetworkingV1beta1IngressList ingressList = Kubernetes.listNamespacedIngresses(namespace);
    List<NetworkingV1beta1Ingress> listOfIngress = ingressList.getItems();

    listOfIngress.forEach(ingress -> {
      if (ingress.getMetadata() != null) {
        ingressNames.add(ingress.getMetadata().getName());
      }
    });

    return ingressNames;
  }
/**
   * List all of the ingresses in the specified namespace.
   *
   * @param namespace the namespace to which the ingresses belong
   * @return a list of ingress names in the namespace
   * @throws ApiException if Kubernetes client API call fails
   */
List all of the ingresses in the specified namespace.
@param namespace the namespace to which the ingresses belong
@return a list of ingress names in the namespace
@throws ApiException if Kubernetes client API call fails
List all of the ingresses in the specified namespace . @param namespace the namespace to which the ingresses belong @return a list of ingress names in the namespace @throws ApiException if Kubernetes client API call fails
public static List<String> listIngresses(String namespace) throws ApiException {
    List<String> ingressNames = new ArrayList<>();
    NetworkingV1beta1IngressList ingressList = Kubernetes.listNamespacedIngresses(namespace);
    List<NetworkingV1beta1Ingress> listOfIngress = ingressList.getItems();
    listOfIngress.forEach(ingress -> {
      if (ingress.getMetadata() != null) {
        ingressNames.add(ingress.getMetadata().getName());
      }
    });
    return ingressNames;
  }
public static List < String > listIngresses ( String namespace ) throws ApiException { List < String > ingressNames = new ArrayList < > ( ) ; NetworkingV1beta1IngressList ingressList = Kubernetes . listNamespacedIngresses ( namespace ) ; List < NetworkingV1beta1Ingress > listOfIngress = ingressList . getItems ( ) ; listOfIngress . forEach ( ingress -> { if ( ingress . getMetadata ( ) != null ) { ingressNames . add ( ingress . getMetadata ( ) . getName ( ) ) ; } } ) ; return ingressNames ; }
List all of the ingresses in the specified namespace.
List all of the ingresses in the specified namespace .