@Override
    public List<ManifestSnippet> build(ServiceMetadata serviceMetadata, LoadBalancer loadBalancer) throws HyscaleException {
        logger.debug("Building Manifests for Ingress Resource");
        ConfigTemplate nginxIngressTemplate = templateProvider.get(PluginTemplateProvider.PluginTemplateType.INGRESS);
        String yamlString = templateResolver.resolveTemplate(nginxIngressTemplate.getTemplatePath(), getIngressSpecContext(serviceMetadata,loadBalancer));
        ManifestSnippet snippet = new ManifestSnippet();
        snippet.setKind(ManifestResource.INGRESS.getKind());
        snippet.setPath("spec");
        snippet.setSnippet(yamlString);
        List<ManifestSnippet> snippetList = new LinkedList<>();
        snippetList.add(snippet);
        snippetList.add(getProviderSpecificMetadata(serviceMetadata,loadBalancer));
        return snippetList;
    }
This class generates Manifests of Ingress resources for the load balancer configuration provided in hspec.
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/builder/IngressManifestBuilder.java