@Override protected void appendReadonlyClouddriverForDeck(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { if (hasServiceOverrides(deploymentConfiguration)) { Map<String, Map<String, Map<String, Map<String, Map<String, String>>>>> services = Collections.singletonMap( "services", Collections.singletonMap( "clouddriver", Collections.singletonMap( "config", Collections.singletonMap( "dynamicEndpoints", Collections.singletonMap( "deck", endpoints.getServiceSettings(Type.CLOUDDRIVER_RO_DECK).getBaseUrl()))))); profile.appendContents(getYamlParser().dump(services)); } } }
@Override public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) { KubernetesSharedServiceSettings kubernetesSharedServiceSettings = new KubernetesSharedServiceSettings( deploymentConfiguration); ServiceSettings settings = defaultServiceSettings(deploymentConfiguration); settings.setArtifactId(getArtifactId(deploymentConfiguration.getName())) .setLocation(kubernetesSharedServiceSettings.getDeployLocation()) .setEnabled(true); return settings; }
@Override public ServiceSettings defaultServiceSettings(DeploymentConfiguration deploymentConfiguration) { return new Settings(deploymentConfiguration.getSecurity().getApiSecurity(), getActiveSpringProfiles(deploymentConfiguration)); }
@Override public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) { KubernetesSharedServiceSettings kubernetesSharedServiceSettings = new KubernetesSharedServiceSettings( deploymentConfiguration); ServiceSettings settings = defaultServiceSettings(deploymentConfiguration); settings.setArtifactId(getArtifactId(deploymentConfiguration.getName())) .setLocation(kubernetesSharedServiceSettings.getDeployLocation()) .setEnabled(true); return settings; }
@Override public ServiceSettings defaultServiceSettings(DeploymentConfiguration deploymentConfiguration) { return new Settings(deploymentConfiguration.getSecurity().getApiSecurity(), getActiveSpringProfiles(deploymentConfiguration)); }
@Override protected void appendReadonlyClouddriverForDeck(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { if (hasServiceOverrides(deploymentConfiguration) && !deploymentConfiguration.getDeploymentEnvironment().getHaServices().getClouddriver().isDisableClouddriverRoDeck()) { Map<String, Map<String, Map<String, Map<String, Map<String, String>>>>> services = Collections.singletonMap( "services", Collections.singletonMap( "clouddriver", Collections.singletonMap( "config", Collections.singletonMap( "dynamicEndpoints", Collections.singletonMap( "deck", endpoints.getServiceSettings(Type.CLOUDDRIVER_RO_DECK).getBaseUrl()))))); profile.appendContents(getYamlParser().dump(services)); } } }