@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); profile.appendContents("services.fiat.enabled: false") .appendContents(profile.getBaseContents()) .appendContents("pipelineTemplate.enabled: false") .appendContents("pipelineTemplates.enabled: false"); } }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); profile.appendContents("services.fiat.enabled: false") .appendContents(profile.getBaseContents()) .appendContents("pipelineTemplate.enabled: false") .appendContents("pipelineTemplates.enabled: false"); } }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.appendContents(profile.getBaseContents()); // No modifications are made to user-supplied profiles. }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.appendContents(shutdownCommands); profile.setExecutable(true); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.appendContents("metrics_url: " + settings.getMetricsUrl()); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.appendContents(yamlToString(endpoints)); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.appendContents(shutdownCommands); profile.setExecutable(true); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.appendContents(profile.getBaseContents()); } }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.appendContents(profile.getBaseContents()); // No modifications are made to user-supplied profiles. }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { profile.appendContents(yamlToString(endpoints.slim())); profile.appendContents("global.spinnaker.timezone: " + deploymentConfiguration.getTimezone()); }
@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 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 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 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); profile.appendContents(profile.getBaseContents()); Canary canary = deploymentConfiguration.getCanary(); if (canary.isEnabled()) { List<String> files = new ArrayList<>(backupRequiredFiles(canary, deploymentConfiguration.getName())); KayentaConfigWrapper kayentaConfig = new KayentaConfigWrapper(endpoints.getServiceSettings(Type.KAYENTA), canary); profile.appendContents(yamlToString(kayentaConfig)).setRequiredFiles(files); } }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); profile.appendContents(profile.getBaseContents()); Canary canary = deploymentConfiguration.getCanary(); if (canary.isEnabled()) { List<String> files = new ArrayList<>(backupRequiredFiles(canary, deploymentConfiguration.getName())); KayentaConfigWrapper kayentaConfig = new KayentaConfigWrapper(endpoints.getServiceSettings(Type.KAYENTA), canary); profile.appendContents(yamlToString(kayentaConfig)).setRequiredFiles(files); } }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); Authz authz = deploymentConfiguration.getSecurity().getAuthz(); List<String> files = backupRequiredFiles(authz, deploymentConfiguration.getName()); AuthConfig authConfig = new AuthConfig().setAuth(authz); profile.appendContents(yamlToString(authConfig)) .appendContents(profile.getBaseContents()) .setRequiredFiles(files); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); Authz authz = deploymentConfiguration.getSecurity().getAuthz(); List<String> files = backupRequiredFiles(authz, deploymentConfiguration.getName()); AuthConfig authConfig = new AuthConfig().setAuth(authz); profile.appendContents(yamlToString(authConfig)) .appendContents(profile.getBaseContents()) .setRequiredFiles(files); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); Providers providers = deploymentConfiguration.getProviders(); Providers otherProviders = getImageProviders(profile.getVersion(), deploymentConfiguration.getName()); augmentProvidersBaseImages(providers, otherProviders); List<String> files = backupRequiredFiles(providers, deploymentConfiguration.getName()); profile.appendContents(yamlToString(providers)) .appendContents(profile.getBaseContents()) .setRequiredFiles(files); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { SpectatorConfig spectatorConfig = new SpectatorConfig(); spectatorConfig .getSpectator() .getWebEndpoint() .setEnabled(deploymentConfiguration.getMetricStores().isEnabled()); profile.appendContents(yamlToString(spectatorConfig)); }
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { SpectatorConfig spectatorConfig = new SpectatorConfig(); spectatorConfig .getSpectator() .getWebEndpoint() .setEnabled(deploymentConfiguration.getMetricStores().isEnabled()); profile.appendContents(yamlToString(spectatorConfig)); }