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