use of com.netflix.spinnaker.halyard.deploy.spinnaker.v1.SpinnakerRuntimeSettings in project halyard by spinnaker.
the class SpinnakerMonitoringDaemonService method getProfiles.
@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
List<Profile> results = new ArrayList<>();
for (Map.Entry<Type, ServiceSettings> entry : endpoints.getAllServiceSettings().entrySet()) {
ServiceSettings settings = entry.getValue();
if (settings.getMonitored() && settings.getEnabled()) {
String serviceName = entry.getKey().getCanonicalName();
String profileName = serviceRegistryProfileName(serviceName);
String profilePath = Paths.get(REGISTRY_OUTPUT_PATH, serviceName + ".yml").toString();
ProfileFactory factory = metricRegistryProfileFactoryBuilder.build(settings);
results.add(factory.getProfile(profileName, profilePath, deploymentConfiguration, endpoints));
}
}
String profileName = monitoringProfileName();
String profilePath = Paths.get(CONFIG_OUTPUT_PATH, profileName).toString();
results.add(spinnakerMonitoringDaemonProfileFactory.getProfile(profileName, profilePath, deploymentConfiguration, endpoints));
return results;
}
use of com.netflix.spinnaker.halyard.deploy.spinnaker.v1.SpinnakerRuntimeSettings in project halyard by spinnaker.
the class IgorService method getProfiles.
@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
String filename = "igor.yml";
String path = Paths.get(getConfigOutputPath(), filename).toString();
Profile profile = igorProfileFactory.getProfile(filename, path, deploymentConfiguration, endpoints);
profiles.add(profile);
return profiles;
}
use of com.netflix.spinnaker.halyard.deploy.spinnaker.v1.SpinnakerRuntimeSettings in project halyard by spinnaker.
the class EchoService method getProfiles.
@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
String filename = "echo.yml";
String path = Paths.get(getConfigOutputPath(), filename).toString();
Profile profile = echoProfileFactory.getProfile(filename, path, deploymentConfiguration, endpoints);
profiles.add(profile);
return profiles;
}
use of com.netflix.spinnaker.halyard.deploy.spinnaker.v1.SpinnakerRuntimeSettings in project halyard by spinnaker.
the class KayentaService method getProfiles.
@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
String filename = "kayenta.yml";
String path = Paths.get(getConfigOutputPath(), filename).toString();
Profile profile = kayentaProfileFactory.getProfile(filename, path, deploymentConfiguration, endpoints);
profiles.add(profile);
return profiles;
}
use of com.netflix.spinnaker.halyard.deploy.spinnaker.v1.SpinnakerRuntimeSettings in project halyard by spinnaker.
the class ClouddriverBootstrapService method getProfiles.
@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
// Due to a "feature" in how spring merges profiles, list entries (including requiredGroupMembership) are
// merged rather than overwritten. Including the base profile will prevent fiat-enabled setups from deploying
// anything since the deploying account will be restricted from performing any operations
profiles = profiles.stream().filter(p -> !p.getName().equals("clouddriver.yml")).collect(Collectors.toList());
String filename = "clouddriver-bootstrap.yml";
String path = Paths.get(getConfigOutputPath(), filename).toString();
Profile profile = clouddriverBootstrapProfileFactory.getProfile(filename, path, deploymentConfiguration, endpoints);
profiles.add(profile);
return profiles;
}
Aggregations