@Override
    protected Map<String, Object> getContext(ServiceMetadata serviceMetadata, LoadBalancer loadBalancer) {
        if(loadBalancer.isSticky()){
            Map<String, Object> map = new HashMap<>();
            map.put(HOST_NAME, serviceMetadata.getServiceName());
            map.put(ManifestGenConstants.LOADBALANCER, loadBalancer);
            map.put(COOKIE_NAME,DEFAULT_COOKIE_NAME);
            map.put(COOKIE_TTL,DEFAULT_COOKIE_TTL);
            return map;
        }
        return  null;
    }
This class generates istio destination rule yaml.
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/builder/DestinationRuleBuilder.java