public static ServiceAddress getIngressServiceAddress(LoadBalancer loadBalancer, ApiClient apiClient, String ingressSelector, String namespace, boolean setDefaultIp) {
		try {
			ServiceAddress serviceAddress = new ServiceAddress();
			serviceAddress.setServiceURL(loadBalancer.getHost());
			CustomResourceKind customResourceKind = new CustomResourceKind(ResourceKind.INGRESS.getKind(), ResourceKind.INGRESS.getApiVersion());
			GenericK8sClient genericK8sClient = new K8sResourceClient(apiClient).withNamespace(namespace).forKind(customResourceKind);
			List<CustomObject> customObjects = genericK8sClient.getBySelector(ingressSelector);
			CustomObject ingressResource = customObjects.get(0);
			if (ingressResource.get("status") != null) {
				JsonParser jsonParser = new JsonParser();
				JsonObject status = (JsonObject) jsonParser.parse(String.valueOf(ingressResource.get("status")));
				if (status.get(LOAD_BALANCER) != null && status.getAsJsonObject(LOAD_BALANCER).get("ingress") != null) {
					JsonObject ingress = status.getAsJsonObject(LOAD_BALANCER).getAsJsonArray("ingress").get(0).getAsJsonObject();
					if(ingress.get("ip") != null){
						serviceAddress.setServiceIP(ingress.get("ip").getAsString());	
					}
				}
			}
			if (serviceAddress.getServiceIP() == null && setDefaultIp) {
				LBType lbType = LBType.getByProvider(loadBalancer.getProvider());
				serviceAddress.setServiceIP(Objects.requireNonNull(lbType).getServiceAddressPlaceHolder());
			}
			return serviceAddress;
		} catch (Exception e) {
			logger.error("Error while retrieving Ingress IP address for selector {} in namespace {}. Reason :", ingressSelector, namespace, e);
		}
		return null;
	}
@param loadBalancer Load Balancer details.
@param apiClient apiClient to access the cluster.
@param ingressSelector Selector required to get the Ingress resource from the cluster.
@param namespace namespace of the Ingress
@param setDefaultIp if setDefaultIp is true Service IP will be the place holder, else it will  be the IP of Ingress resource in the cluster.
@return ServiceAddress.
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/K8sServiceUtil.java