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

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

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

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

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver-ro.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 profiles.add(getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints));
 return profiles;
}
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);
}
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: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver-caching.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 profiles.add(getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints));
 return profiles;
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 Profile profile = getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints);
 profiles.add(profile);
 return profiles;
}
origin: spinnaker/halyard

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver-rw.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 profiles.add(getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints));
 return profiles;
}
origin: spinnaker/halyard

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver-ro.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 profiles.add(getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints));
 return profiles;
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver-ro-deck.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 profiles.add(getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints));
 return profiles;
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver-rw.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 profiles.add(getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints));
 return profiles;
}
origin: spinnaker/halyard

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver-caching.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 profiles.add(getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints));
 return profiles;
}
origin: spinnaker/halyard

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver-ro-deck.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 profiles.add(getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints));
 return profiles;
}
origin: spinnaker/halyard

@Override
public List<Profile> getProfiles(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 List<Profile> profiles = super.getProfiles(deploymentConfiguration, endpoints);
 String filename = "clouddriver.yml";
 String path = Paths.get(getConfigOutputPath(), filename).toString();
 Profile profile = getClouddriverProfileFactory().getProfile(filename, path, deploymentConfiguration, endpoints);
 profiles.add(profile);
 return profiles;
}
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profileClouddriverProfileFactory

Most used methods

  • backupRequiredFiles
  • getProfile
  • processProviders
  • removeBootstrapOnlyAccount
  • yamlToString

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
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