public List<String> getServiceNames(List<V1Deployment> deploymentList) {
        if (deploymentList == null) {
            return Collections.emptyList();
        }
        return deploymentList.stream().filter(each -> each != null && each.getMetadata() != null)
                .map(each -> ResourceLabelUtil.getServiceName(each.getMetadata().getLabels()))
                .collect(Collectors.toList());
    }
@param deploymentList
@return list of service names from label of deployment
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/V1DeploymentHandler.java