use of com.netflix.spinnaker.halyard.config.model.v1.node.Cis in project halyard by spinnaker.
the class CiService method getAllCis.
public List<Ci> getAllCis(String deploymentName) {
NodeFilter filter = new NodeFilter().setDeployment(deploymentName).withAnyCi();
List<Ci> matching = lookupService.getMatchingNodesOfType(filter, Ci.class);
if (matching.size() == 0) {
throw new ConfigNotFoundException(new ConfigProblemBuilder(Severity.FATAL, "No cis could be found").build());
} else {
return matching;
}
}
use of com.netflix.spinnaker.halyard.config.model.v1.node.Cis in project halyard by spinnaker.
the class IgorProfileFactory method setProfile.
@Override
public void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
super.setProfile(profile, deploymentConfiguration, endpoints);
Providers providers = deploymentConfiguration.getProviders();
if (providers.getDockerRegistry().isEnabled()) {
profile.appendContents("dockerRegistry.enabled: true");
}
Cis cis = deploymentConfiguration.getCi();
List<String> files = backupRequiredFiles(cis, deploymentConfiguration.getName());
profile.appendContents(yamlToString(cis)).appendContents(profile.getBaseContents()).setRequiredFiles(files);
}
Aggregations