@Override
    public List<ManifestSnippet> build(ManifestContext manifestContext, ServiceSpec serviceSpec) throws JsonProcessingException {
        String podSpecOwner = ((String) manifestContext.getGenerationAttribute(ManifestGenConstants.POD_SPEC_OWNER));
        List<ManifestSnippet> podSnippets = new ArrayList<>();
        List<Agent> agents = getAgents(serviceSpec);
        if(agents == null){
            logger.debug("No Agents found for agents image builder");
            return podSnippets;
        }
        int agentCount = 1;
        for (Agent agent : agents) {
            String pathPrefix = "spec.template.spec.containers[" + agentCount+"].";
            // name
            ManifestSnippet agentNameSnippet = new ManifestSnippet();
            agentNameSnippet.setKind(podSpecOwner);
            agentNameSnippet.setSnippet(agent.getName());
            String namePath = pathPrefix+"name";
            agentNameSnippet.setPath(namePath);
            podSnippets.add(agentNameSnippet);
            // image
            ManifestSnippet agentImageSnippet = new ManifestSnippet();
            agentImageSnippet.setKind(podSpecOwner);
            agentImageSnippet.setSnippet(agent.getImage());
            String imagePath = pathPrefix+"image";
            agentImageSnippet.setPath(imagePath);
            podSnippets.add(agentImageSnippet);
            // pull policy
            ManifestSnippet agentPullPolicySnippet = new ManifestSnippet();
            agentPullPolicySnippet.setKind(podSpecOwner);
            agentPullPolicySnippet.setSnippet(ManifestGenConstants.DEFAULT_IMAGE_PULL_POLICY);
            String pullPolicyPath = pathPrefix+"imagePullPolicy";
            agentPullPolicySnippet.setPath(pullPolicyPath);
            podSnippets.add(agentPullPolicySnippet);

            agentCount++;
        }
        return podSnippets;
    }
Pod spec manifest snippet builder for agent image information.
<p>
This class is responsible for building manifest snippets
for agent name,image and image pull policy.
</p>
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/utils/AgentImageBuilder.java