@Override
    protected Map<String, Object> getContext(ServiceMetadata serviceMetadata, LoadBalancer loadBalancer) {
        Map<String, Object> map = new HashMap<>();
        map.put(GATEWAY_LABELS, loadBalancer.getLabels().entrySet());
        map.put(ManifestGenConstants.LOADBALANCER, loadBalancer);
        List<String> hosts = new ArrayList<>();
        hosts.add(loadBalancer.getHost());
        map.put(ManifestGenConstants.HOSTS, hosts);
        map.put(TLS_MODE, DEFAULT_TLS_MODE);
        map.put(PORT_NUMBER, loadBalancer.getTlsSecret() == null ? DEFAULT_GATEWAY_PORT : DEFAULT_GATEWAY_TLS_PORT);
        map.put(PROTOCOL, loadBalancer.getTlsSecret() != null ? "HTTPS" : "HTTP");
        return map;
    }
This class generates  istio gateway yaml.
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/builder/GatewayBuilder.java