Tabnine Logo
ArtifactSourcesConfig.mergeWithBomSources
Code IndexAdd Tabnine to your IDE (free)

How to use
mergeWithBomSources
method
in
com.netflix.spinnaker.halyard.config.config.v1.ArtifactSourcesConfig

Best Java code snippets using com.netflix.spinnaker.halyard.config.config.v1.ArtifactSourcesConfig.mergeWithBomSources (Showing top 10 results out of 315)

origin: spinnaker/halyard

 public String getGoogleImageProject(String deploymentName, SpinnakerArtifact artifact) {
  BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact);
  return artifactSourcesConfig.mergeWithBomSources(artifactSources).getGoogleImageProject();
 }
}
origin: spinnaker/halyard

public String getDockerRegistry(String deploymentName, SpinnakerArtifact artifact) {
 BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact);
 return artifactSourcesConfig.mergeWithBomSources(artifactSources).getDockerRegistry();
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

public String getDockerRegistry(String deploymentName, SpinnakerArtifact artifact) {
 BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact);
 return artifactSourcesConfig.mergeWithBomSources(artifactSources).getDockerRegistry();
}
origin: spinnaker/halyard

public String getDockerRegistry(String deploymentName, SpinnakerArtifact artifact) {
 BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact);
 return artifactSourcesConfig.mergeWithBomSources(artifactSources).getDockerRegistry();
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 public String getGoogleImageProject(String deploymentName, SpinnakerArtifact artifact) {
  BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact);
  return artifactSourcesConfig.mergeWithBomSources(artifactSources).getGoogleImageProject();
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

public String getDockerRegistry(String deploymentName, SpinnakerArtifact artifact) {
 BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact);
 return artifactSourcesConfig.mergeWithBomSources(artifactSources).getDockerRegistry();
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public String getInstallCommand(DeploymentDetails deploymentDetails, GenerateService.ResolvedConfiguration resolvedConfiguration, Map<String, String> installCommands, String startupCommand) {
 Map<String, Object> bindings = new HashMap<>();
 List<SpinnakerService.Type> serviceTypes = new ArrayList<>(installCommands.keySet()).stream().map(SpinnakerService.Type::fromCanonicalName).collect(Collectors.toList());
 List<String> upstartNames = getPrioritizedBakeableServices(serviceTypes)
   .stream()
   .filter(i -> resolvedConfiguration.getServiceSettings(i.getService()).getEnabled())
   .map(i -> ((BakeDebianService) i).getUpstartServiceName())
   .filter(Objects::nonNull)
   .collect(Collectors.toList());
 List<String> systemdServiceConfigs = upstartNames.stream()
   .map(n -> n + ".service")
   .collect(Collectors.toList());
 List<String> serviceInstalls = serviceTypes.stream()
   .map(t -> installCommands.get(t.getCanonicalName()))
   .collect(Collectors.toList());
 TemplatedResource resource = new StringReplaceJarResource("/debian/init.sh");
 bindings.put("services", Strings.join(upstartNames, " "));
 bindings.put("systemd-service-configs", Strings.join(systemdServiceConfigs, " "));
 String upstartInit = resource.setBindings(bindings).toString();
 BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentDetails.getDeploymentName());
 resource = new StringReplaceJarResource("/debian/pre-bake.sh");
 bindings = new HashMap<>();
 bindings.put("debian-repository", artifactSourcesConfig.mergeWithBomSources(artifactSources).getDebianRepository());
 bindings.put("install-commands", String.join("\n", serviceInstalls));
 bindings.put("upstart-init", upstartInit);
 bindings.put("startup-file", Paths.get(startupScriptPath, "startup.sh").toString());
 bindings.put("startup-command", startupCommand);
 return resource.setBindings(bindings).toString();
}
origin: spinnaker/halyard

bindings.put("prepare-environment", "true");
bindings.put("install-redis", "true");
bindings.put("debian-repository", artifactSourcesConfig.mergeWithBomSources(artifactSources).getDebianRepository());
bindings.put("install-commands", String.join("\n", serviceInstalls));
bindings.put("service-action", "restart");
origin: spinnaker/halyard

@Override
public String getInstallCommand(DeploymentDetails deploymentDetails, GenerateService.ResolvedConfiguration resolvedConfiguration, Map<String, String> installCommands, String startupCommand) {
 Map<String, Object> bindings = new HashMap<>();
 List<SpinnakerService.Type> serviceTypes = new ArrayList<>(installCommands.keySet()).stream().map(SpinnakerService.Type::fromCanonicalName).collect(Collectors.toList());
 List<String> upstartNames = getPrioritizedBakeableServices(serviceTypes)
   .stream()
   .filter(i -> resolvedConfiguration.getServiceSettings(i.getService()).getEnabled())
   .map(i -> ((BakeDebianService) i).getUpstartServiceName())
   .filter(Objects::nonNull)
   .collect(Collectors.toList());
 List<String> systemdServiceConfigs = upstartNames.stream()
   .map(n -> n + ".service")
   .collect(Collectors.toList());
 List<String> serviceInstalls = serviceTypes.stream()
   .map(t -> installCommands.get(t.getCanonicalName()))
   .collect(Collectors.toList());
 TemplatedResource resource = new StringReplaceJarResource("/debian/init.sh");
 bindings.put("services", Strings.join(upstartNames, " "));
 bindings.put("systemd-service-configs", Strings.join(systemdServiceConfigs, " "));
 String upstartInit = resource.setBindings(bindings).toString();
 BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentDetails.getDeploymentName());
 resource = new StringReplaceJarResource("/debian/pre-bake.sh");
 bindings = new HashMap<>();
 bindings.put("debian-repository", artifactSourcesConfig.mergeWithBomSources(artifactSources).getDebianRepository());
 bindings.put("install-commands", String.join("\n", serviceInstalls));
 bindings.put("upstart-init", upstartInit);
 bindings.put("startup-file", Paths.get(startupScriptPath, "startup.sh").toString());
 bindings.put("startup-command", startupCommand);
 return resource.setBindings(bindings).toString();
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

bindings.put("prepare-environment", "true");
bindings.put("install-redis", "true");
bindings.put("debian-repository", artifactSourcesConfig.mergeWithBomSources(artifactSources).getDebianRepository());
bindings.put("install-commands", String.join("\n", serviceInstalls));
bindings.put("service-action", "restart");
com.netflix.spinnaker.halyard.config.config.v1ArtifactSourcesConfigmergeWithBomSources

Popular methods of ArtifactSourcesConfig

  • getGoogleImageProject
  • getDebianRepository
  • getDockerRegistry

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Github Copilot 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