private boolean checkForLoadBalancer(ServiceSpec serviceSpec) throws HyscaleException {
        LoadBalancer loadBalancer = serviceSpec.get(HyscaleSpecFields.loadBalancer, LoadBalancer.class);
        return loadBalancer != null;
    }
If loadBalancer is configured and external is specified as true in hspec, then Service type could be CLUSTER_IP.
If loadBalancer is not configured and external is true then service type could be LOAD_BALANCER.
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/plugins/ServiceTypeHandler.java