protected Profile getProcessProfile(ProcessRequirements requirements, boolean includeController) { Container container = fabricService.getCurrentContainer(); Profile processProfile = new ProfileOverlayImpl( new ProcessProfile(container, requirements, fabricService, includeController), true, fabricService.getDataStore(), fabricService.getEnvironment()); return processProfile; }
@Override public boolean isValidProvider() { // docker provider isn't valid in openshift/kubernetes environment FabricService service = getFabricService(); if (service != null) { // lets disable child if in docker or openshift environments String environment = service.getEnvironment(); if (Objects.equal(environment, "openshift") || Objects.equal(environment, "kubernetes")) { return false; } } return true; }