@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; }
@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); } }
@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); } }
@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; }