@Override public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints); String filename = "fiat.yml"; String path = Paths.get(getConfigOutputPath(), filename).toString(); Profile profile = fiatProfileFactory.getProfile(filename, path, deploymentConfiguration, endpoints); profiles.add(profile); return profiles; }
@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 public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints); String filename = "fiat.yml"; String path = Paths.get(getConfigOutputPath(), filename).toString(); Profile profile = fiatProfileFactory.getProfile(filename, path, deploymentConfiguration, endpoints); profiles.add(profile); return profiles; }