Search in sources :

Example 6 with PersistentStorage

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);
}
Also used : PersistentStorage(com.netflix.spinnaker.halyard.config.model.v1.node.PersistentStorage) NodeFilter(com.netflix.spinnaker.halyard.config.model.v1.node.NodeFilter)

Example 7 with PersistentStorage

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);
}
Also used : PersistentStorage(com.netflix.spinnaker.halyard.config.model.v1.node.PersistentStorage) NodeFilter(com.netflix.spinnaker.halyard.config.model.v1.node.NodeFilter)

Aggregations

PersistentStorage (com.netflix.spinnaker.halyard.config.model.v1.node.PersistentStorage)5 NodeFilter (com.netflix.spinnaker.halyard.config.model.v1.node.NodeFilter)3 OperationHandler (com.netflix.spinnaker.halyard.cli.services.v1.OperationHandler)1 DeploymentConfiguration (com.netflix.spinnaker.halyard.config.model.v1.node.DeploymentConfiguration)1 RedisPersistentStore (com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.RedisPersistentStore)1 UpdateRequestBuilder (com.netflix.spinnaker.halyard.core.DaemonResponse.UpdateRequestBuilder)1 HalException (com.netflix.spinnaker.halyard.core.error.v1.HalException)1 ProblemSet (com.netflix.spinnaker.halyard.core.problem.v1.ProblemSet)1 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 Path (java.nio.file.Path)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1