@Override public String getDeployLocation() { return StringUtils.isEmpty(deploymentConfiguration.getDeploymentEnvironment().getLocation()) ? "spinnaker" : deploymentConfiguration.getDeploymentEnvironment().getLocation(); } }
@Override public String getDeployLocation() { return StringUtils.isEmpty(deploymentConfiguration.getDeploymentEnvironment().getLocation()) ? "spinnaker" : deploymentConfiguration.getDeploymentEnvironment().getLocation(); } }
@Override public void makeBootstrappingAccount(ArtifactSourcesConfig artifactSourcesConfig) { super.makeBootstrappingAccount(artifactSourcesConfig); DeploymentConfiguration deploymentConfiguration = parentOfType(DeploymentConfiguration.class); String location = StringUtils.isEmpty(deploymentConfiguration.getDeploymentEnvironment().getLocation()) ? "spinnaker" : deploymentConfiguration.getDeploymentEnvironment().getLocation(); // These changes are only surfaced in the account used by the bootstrapping clouddriver, // the user's clouddriver will be unchanged. if (!namespaces.isEmpty() && !namespaces.contains(location)) { namespaces.add(location); } if (!omitNamespaces.isEmpty() && omitNamespaces.contains(location)) { omitNamespaces.remove(location); } }
@Override public void makeBootstrappingAccount(ArtifactSourcesConfig artifactSourcesConfig) { super.makeBootstrappingAccount(artifactSourcesConfig); DeploymentConfiguration deploymentConfiguration = parentOfType(DeploymentConfiguration.class); String location = StringUtils.isEmpty(deploymentConfiguration.getDeploymentEnvironment().getLocation()) ? "spinnaker" : deploymentConfiguration.getDeploymentEnvironment().getLocation(); // These changes are only surfaced in the account used by the bootstrapping clouddriver, // the user's clouddriver will be unchanged. if (!namespaces.isEmpty() && !namespaces.contains(location)) { namespaces.add(location); } if (!omitNamespaces.isEmpty() && omitNamespaces.contains(location)) { omitNamespaces.remove(location); } }
public String getLocation(String deploymentName) { DeploymentConfiguration deploymentConfiguration = getDeploymentConfiguration(deploymentName); return deploymentConfiguration.getDeploymentEnvironment().getLocation(); }
public String getLocation(String deploymentName) { DeploymentConfiguration deploymentConfiguration = getDeploymentConfiguration(deploymentName); return deploymentConfiguration.getDeploymentEnvironment().getLocation(); }
deploymentEnvironment.setVault(vault); deploymentEnvironment.setLocation(isSet(location) ? location : deploymentEnvironment.getLocation());
deploymentEnvironment.setVault(vault); deploymentEnvironment.setLocation(isSet(location) ? location : deploymentEnvironment.getLocation());