class ProfilerSchedulerCloudStorageRoleConfigProvider extends AbstractRoleConfigProvider {

    @Override
    protected List<ApiClusterTemplateConfig> getRoleConfigs(String roleType, TemplatePreparationObject templatePreparationObject) {
        switch (roleType) {
            case ProfilerSchedulerRoles.PROFILER_SCHEDULER_AGENT:
                return ConfigUtils.getStorageLocationForServiceProperty(templatePreparationObject, FILE_SYSTEM_URI)
                        .map(location -> List.of(config(FILE_SYSTEM_URI, location.getValue())))
                        .orElseGet(List::of);
            default:
                return List.of();
        }
    }

}