use of com.netflix.spinnaker.halyard.config.model.v1.node.PersistentStorage in project halyard by spinnaker.
the class DeploymentService method validateDeployment.
public ProblemSet validateDeployment(String deploymentName) {
PersistentStorage storage = storageService.getPersistentStorage(deploymentName);
NodeFilter filter = new NodeFilter().setDeployment(deploymentName).withAnyProvider().withAnyAccount().setFeatures().setSecurity();
if (storage.getPersistentStoreType() != null) {
filter.setPersistentStore(storage.getPersistentStoreType().getId());
}
return validateService.validateMatchingFilter(filter);
}
use of com.netflix.spinnaker.halyard.config.model.v1.node.PersistentStorage in project halyard by spinnaker.
the class PersistentStorageService method validatePersistentStorage.
public ProblemSet validatePersistentStorage(String deploymentName) {
PersistentStorage storage = getPersistentStorage(deploymentName);
NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setPersistentStorage();
if (storage.getPersistentStoreType() != null) {
filter.setPersistentStore(storage.getPersistentStoreType().getId());
}
return validateService.validateMatchingFilter(filter);
}
Aggregations