private Map<String,Object> getContext(ServiceMetadata serviceMetadata, LoadBalancer loadBalancer){
        Map<String, Object> context = new HashMap<>();
        context.put(INGRESS_NAME,ManifestResource.INGRESS.getName(serviceMetadata));
        context.put(APP_NAME,serviceMetadata.getAppName());
        context.put(ENV_NAME,serviceMetadata.getEnvName());
        context.put(SERVICE_NAME,serviceMetadata.getServiceName());
        if(loadBalancer.getClassName()!= null && !loadBalancer.getClassName().isBlank()){
            context.put(INGRESS_CLASS,loadBalancer.getClassName());
        }
        if(loadBalancer.isSticky()){
            context.put(STICKY,"cookie");
        }
        if(loadBalancer.getTlsSecret()!= null && !loadBalancer.getTlsSecret().isBlank()){
            context.put(SSL_REDIRECT,"true");
        }
        if(loadBalancer.getHeaders()!= null && !loadBalancer.getHeaders().isEmpty()){
            context.put(CONFIGURATION_SNIPPET, getConfigurationSnippetAkaHeaders(loadBalancer.getHeaders()));
        }
        return context;
    }
Builds Metadata for  Nginx Ingress resource yaml
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/builder/NginxMetaDataBuilder.java