Tabnine Logo
ClouddriverProfileFactory.processProviders
Code IndexAdd Tabnine to your IDE (free)

How to use
processProviders
method
in
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.ClouddriverProfileFactory

Best Java code snippets using com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.ClouddriverProfileFactory.processProviders (Showing top 2 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 // We need to make modifications to this deployment configuration, but can't use helpful objects
 // like the accountService on a clone. Therefore, we'll make the modifications in place and
 // restore to the original state when the modifications are written out.
 Providers originalProviders = deploymentConfiguration.getProviders().cloneNode(Providers.class);
 Providers modifiedProviders = deploymentConfiguration.getProviders();
 DeploymentEnvironment deploymentEnvironment = deploymentConfiguration.getDeploymentEnvironment();
 if (deploymentEnvironment.getBootstrapOnly() != null && deploymentEnvironment.getBootstrapOnly()) {
  String bootstrapAccountName = deploymentEnvironment.getAccountName();
  removeBootstrapOnlyAccount(modifiedProviders, deploymentConfiguration.getName(), bootstrapAccountName);
 }
 Artifacts artifacts = deploymentConfiguration.getArtifacts();
 List<String> files = backupRequiredFiles(modifiedProviders, deploymentConfiguration.getName());
 files.addAll(backupRequiredFiles(artifacts, deploymentConfiguration.getName()));
 if (deploymentConfiguration.getProviders() != null) {
  processProviders(deploymentConfiguration.getProviders());
 }
 profile.appendContents(yamlToString(modifiedProviders))
   .appendContents(yamlToString(new ArtifactWrapper(artifacts)))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(files);
 deploymentConfiguration.setProviders(originalProviders);
}
origin: spinnaker/halyard

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 // We need to make modifications to this deployment configuration, but can't use helpful objects
 // like the accountService on a clone. Therefore, we'll make the modifications in place and
 // restore to the original state when the modifications are written out.
 Providers originalProviders = deploymentConfiguration.getProviders().cloneNode(Providers.class);
 Providers modifiedProviders = deploymentConfiguration.getProviders();
 DeploymentEnvironment deploymentEnvironment = deploymentConfiguration.getDeploymentEnvironment();
 if (deploymentEnvironment.getBootstrapOnly() != null && deploymentEnvironment.getBootstrapOnly()) {
  String bootstrapAccountName = deploymentEnvironment.getAccountName();
  removeBootstrapOnlyAccount(modifiedProviders, deploymentConfiguration.getName(), bootstrapAccountName);
 }
 Artifacts artifacts = deploymentConfiguration.getArtifacts();
 List<String> files = backupRequiredFiles(modifiedProviders, deploymentConfiguration.getName());
 files.addAll(backupRequiredFiles(artifacts, deploymentConfiguration.getName()));
 if (deploymentConfiguration.getProviders() != null) {
  processProviders(deploymentConfiguration.getProviders());
 }
 profile.appendContents(yamlToString(modifiedProviders))
   .appendContents(yamlToString(new ArtifactWrapper(artifacts)))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(files);
 deploymentConfiguration.setProviders(originalProviders);
}
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profileClouddriverProfileFactoryprocessProviders

Popular methods of ClouddriverProfileFactory

  • backupRequiredFiles
  • getProfile
  • removeBootstrapOnlyAccount
  • yamlToString

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now