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

How to use
yamlToString
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.yamlToString (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.profileClouddriverProfileFactoryyamlToString

Popular methods of ClouddriverProfileFactory

  • backupRequiredFiles
  • getProfile
  • processProviders
  • removeBootstrapOnlyAccount

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Runner (org.openjdk.jmh.runner)
  • CodeWhisperer alternatives
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