@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); profile.appendContents(profile.getBaseContents()); AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws(); if (awsProvider.isEnabled()) { profile.appendContents("default.bake.account: " + awsProvider.getPrimaryAccount()); profile.appendContents("default.securityGroups: "); profile.appendContents("default.vpc.securityGroups: "); } String pipelineTemplates = Boolean.toString(deploymentConfiguration.getFeatures().getPipelineTemplates() != null ? deploymentConfiguration.getFeatures().getPipelineTemplates() : false); profile.appendContents("pipelineTemplates.enabled: " + pipelineTemplates); // For backward compatibility profile.appendContents("pipelineTemplate.enabled: " + pipelineTemplates); } }
bindings.put("features.jobs", Boolean.toString(features.isJobs())); bindings.put("features.fiat", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled())); bindings.put("features.pipelineTemplates", Boolean.toString(features.getPipelineTemplates() != null ? features.getPipelineTemplates() : false)); bindings.put("features.artifacts", Boolean.toString(features.getArtifacts() != null ? features.getArtifacts() : false)); bindings.put("features.mineCanary", Boolean.toString(features.getMineCanary() != null ? features.getMineCanary() : false));
bindings.put("features.jobs", Boolean.toString(features.isJobs())); bindings.put("features.fiat", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled())); bindings.put("features.pipelineTemplates", Boolean.toString(features.getPipelineTemplates() != null ? features.getPipelineTemplates() : false)); bindings.put("features.artifacts", Boolean.toString(features.getArtifacts() != null ? features.getArtifacts() : false)); bindings.put("features.mineCanary", Boolean.toString(features.getMineCanary() != null ? features.getMineCanary() : false));
@Override protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) { super.setProfile(profile, deploymentConfiguration, endpoints); profile.appendContents(profile.getBaseContents()); AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws(); if (awsProvider.isEnabled()) { profile.appendContents("default.bake.account: " + awsProvider.getPrimaryAccount()); profile.appendContents("default.securityGroups: "); profile.appendContents("default.vpc.securityGroups: "); } Webhook webhook = deploymentConfiguration.getWebhook(); List<String> files = backupRequiredFiles(webhook, deploymentConfiguration.getName()); profile.setRequiredFiles(files); profile.appendContents(yamlToString(new WebhookWrapper(webhook))); String pipelineTemplates = Boolean.toString(deploymentConfiguration.getFeatures().getPipelineTemplates() != null ? deploymentConfiguration.getFeatures().getPipelineTemplates() : false); profile.appendContents("pipelineTemplates.enabled: " + pipelineTemplates); // For backward compatibility profile.appendContents("pipelineTemplate.enabled: " + pipelineTemplates); }
features.setPipelineTemplates(pipelineTemplates != null ? pipelineTemplates : features.getPipelineTemplates()); features.setArtifacts(artifacts != null ? artifacts : features.getArtifacts()); features.setMineCanary(mineCanary != null ? mineCanary : features.getMineCanary());
features.setPipelineTemplates(pipelineTemplates != null ? pipelineTemplates : features.getPipelineTemplates()); features.setArtifacts(artifacts != null ? artifacts : features.getArtifacts()); features.setMineCanary(mineCanary != null ? mineCanary : features.getMineCanary());