Search in sources :

Example 6 with NodeIterator

use of com.netflix.spinnaker.halyard.config.model.v1.node.NodeIterator in project halyard by spinnaker.

the class ValidateService method recursiveValidate.

private void recursiveValidate(ConfigProblemSetBuilder psBuilder, Node node, NodeFilter filter) {
    int runCount = validatorCollection.runAllValidators(psBuilder, node);
    log.info("Ran " + runCount + " validators for node \"" + node.getNodeName() + "\" with class \"" + node.getClass().getSimpleName() + "\"");
    NodeIterator children = node.getChildren();
    Node recurse = children.getNext(filter);
    while (recurse != null) {
        recursiveValidate(psBuilder, recurse, filter);
        recurse = children.getNext(filter);
    }
}
Also used : NodeIterator(com.netflix.spinnaker.halyard.config.model.v1.node.NodeIterator) Node(com.netflix.spinnaker.halyard.config.model.v1.node.Node)

Aggregations

NodeIterator (com.netflix.spinnaker.halyard.config.model.v1.node.NodeIterator)5 Node (com.netflix.spinnaker.halyard.config.model.v1.node.Node)3 Provider (com.netflix.spinnaker.halyard.config.model.v1.node.Provider)3 Strings (com.beust.jcommander.Strings)1 Lists (com.beust.jcommander.internal.Lists)1 DeploymentConfiguration (com.netflix.spinnaker.halyard.config.model.v1.node.DeploymentConfiguration)1 HasImageProvider (com.netflix.spinnaker.halyard.config.model.v1.node.HasImageProvider)1 NodeFilter (com.netflix.spinnaker.halyard.config.model.v1.node.NodeFilter)1 Providers (com.netflix.spinnaker.halyard.config.model.v1.node.Providers)1 Validator (com.netflix.spinnaker.halyard.config.model.v1.node.Validator)1 RedisPersistentStore (com.netflix.spinnaker.halyard.config.model.v1.persistentStorage.RedisPersistentStore)1 DockerRegistryReference (com.netflix.spinnaker.halyard.config.model.v1.providers.containers.DockerRegistryReference)1 DCOSAccount (com.netflix.spinnaker.halyard.config.model.v1.providers.dcos.DCOSAccount)1 DCOSCluster (com.netflix.spinnaker.halyard.config.model.v1.providers.dcos.DCOSCluster)1 DockerRegistryProvider (com.netflix.spinnaker.halyard.config.model.v1.providers.dockerRegistry.DockerRegistryProvider)1 ConfigProblemSetBuilder (com.netflix.spinnaker.halyard.config.problem.v1.ConfigProblemSetBuilder)1 DockerRegistryReferenceValidation.validateDockerRegistries (com.netflix.spinnaker.halyard.config.validate.v1.providers.dockerRegistry.DockerRegistryReferenceValidation.validateDockerRegistries)1 ValidatingFileReader (com.netflix.spinnaker.halyard.config.validate.v1.util.ValidatingFileReader)1 HalException (com.netflix.spinnaker.halyard.core.error.v1.HalException)1 ERROR (com.netflix.spinnaker.halyard.core.problem.v1.Problem.Severity.ERROR)1