private static ManifestSnippet buildServicePortsSnippet(Set<V1ServicePort> servicePorts)
            throws JsonProcessingException {
        ManifestSnippet manifestSnippet = new ManifestSnippet();
        manifestSnippet.setKind(ManifestResource.SERVICE.getKind());
        manifestSnippet.setPath("spec.ports");
        manifestSnippet.setSnippet(GsonSnippetConvertor.serialize(servicePorts));
        return manifestSnippet;
    }
This class is to generate the default ports taken from the
service spec for the manifest snippet.
Handles Ports for Services as well as Agents.
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/builder/DefaultPortsBuilder.java