@Override public ServiceSettings defaultServiceSettings(DeploymentConfiguration deploymentConfiguration) { return new Settings(getActiveSpringProfiles(deploymentConfiguration)); }
@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints); ServiceSettings settings = endpoints.getServiceSettings(getService()); profiles.add(shutdownScriptProfileFactoryBuilder.build( "wget --header=\"content-type: application/json\" --post-data='{\"enabled\": \"false\"}' " + settings.getScheme() + "://localhost:" + settings.getPort() + "/admin/instance/enabled\n\n" + "sleep " + terminationGracePeriodSeconds() / 2 + "\n", getArtifact() ).getProfile("orca/shutdown.sh", shutdownScriptFile(), deploymentConfiguration, endpoints)); return profiles; }
@Override protected void appendReadonlyClouddriver(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { if (hasServiceOverrides(deploymentConfiguration)) { Map<String, Map<String, Map<String, String>>> clouddriver = Collections.singletonMap( "clouddriver", Collections.singletonMap( "readonly", Collections.singletonMap( "baseUrl", endpoints.getServiceSettings(Type.CLOUDDRIVER_RO).getBaseUrl()))); profile.appendContents("\n" + getYamlParser().dump(clouddriver)); } } }
@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints); ServiceSettings settings = endpoints.getServiceSettings(getService()); profiles.add(shutdownScriptProfileFactoryBuilder.build( "wget --header=\"content-type: application/json\" --post-data='{\"enabled\": \"false\"}' " + settings.getScheme() + "://localhost:" + settings.getPort() + "/admin/instance/enabled\n\n" + "sleep " + terminationGracePeriodSeconds() / 2 + "\n", getArtifact() ).getProfile("orca/shutdown.sh", shutdownScriptFile(), deploymentConfiguration, endpoints)); return profiles; }
@Override protected void appendReadonlyClouddriver(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { if (hasServiceOverrides(deploymentConfiguration)) { Map<String, Map<String, Map<String, String>>> clouddriver = Collections.singletonMap( "clouddriver", Collections.singletonMap( "readonly", Collections.singletonMap( "baseUrl", endpoints.getServiceSettings(Type.CLOUDDRIVER_RO).getBaseUrl()))); profile.appendContents("\n" + getYamlParser().dump(clouddriver)); } } }
@Override public ServiceSettings defaultServiceSettings(DeploymentConfiguration deploymentConfiguration) { return new Settings(getActiveSpringProfiles(deploymentConfiguration)); }