/** * Should use {@link #getArtifactSources(String, SpinnakerArtifact)} when it supports all types of * deployments. * * To future devs: In order to remove this method for good, the remaining callers of this method * need to be able to incorporate different repository sources. As of this writing (May 2018) the * {@link com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.local.debian.LocalDebianServiceProvider} * and the * {@link com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.bake.debian.BakeDebianServiceProvider} * are the two hold outs. */ @Deprecated public BillOfMaterials.ArtifactSources getArtifactSources(String deploymentName) { BillOfMaterials bom = getBillOfMaterials(deploymentName); return bom.getArtifactSources(); }
public BillOfMaterials.ArtifactSources getArtifactSources(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials bom = getBillOfMaterials(deploymentName); BillOfMaterials.ArtifactSources baseline = bom.getArtifactSources(); BillOfMaterials.ArtifactSources overrides = bom.getArtifactSources(artifact.getName()); return mergeArtifactSources(baseline, overrides); }
public String getGoogleImageProject(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact); return artifactSourcesConfig.mergeWithBomSources(artifactSources).getGoogleImageProject(); } }
default String getArtifactCommit(String deploymentName) { SpinnakerArtifact artifact = getArtifact(); return getArtifactService().getArtifactCommit(deploymentName, artifact); }
public boolean isInBillOfMaterials(DeploymentConfiguration deployment) { String version = getArtifactService().getArtifactVersion(deployment.getName(), getArtifact()); return (version != null); }
@Override public void ensureRunning(AccountDeploymentDetails<GoogleAccount> details, GenerateService.ResolvedConfiguration resolvedConfiguration, List<ConfigSource> configSources, boolean recreate) { GoogleDistributedService.super.ensureRunning(details, resolvedConfiguration, configSources, recreate); Vault vault = connectToPrimaryService(details, resolvedConfiguration.getRuntimeSettings()); getToken(details.getDeploymentName(), vault); }
public BillOfMaterials.ArtifactSources getArtifactSources(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials bom = getBillOfMaterials(deploymentName); BillOfMaterials.ArtifactSources baseline = bom.getArtifactSources(); BillOfMaterials.ArtifactSources overrides = bom.getArtifactSources(artifact.getName()); return mergeArtifactSources(baseline, overrides); }
public String getGoogleImageProject(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact); return artifactSourcesConfig.mergeWithBomSources(artifactSources).getGoogleImageProject(); } }
/** * Should use {@link #getArtifactSources(String, SpinnakerArtifact)} when it supports all types of * deployments. * * To future devs: In order to remove this method for good, the remaining callers of this method * need to be able to incorporate different repository sources. As of this writing (May 2018) the * {@link com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.local.debian.LocalDebianServiceProvider} * and the * {@link com.netflix.spinnaker.halyard.deploy.spinnaker.v1.service.bake.debian.BakeDebianServiceProvider} * are the two hold outs. */ @Deprecated public BillOfMaterials.ArtifactSources getArtifactSources(String deploymentName) { BillOfMaterials bom = getBillOfMaterials(deploymentName); return bom.getArtifactSources(); }
default String getArtifactCommit(String deploymentName) { SpinnakerArtifact artifact = getArtifact(); return getArtifactService().getArtifactCommit(deploymentName, artifact); }
public boolean isInBillOfMaterials(DeploymentConfiguration deployment) { String version = getArtifactService().getArtifactVersion(deployment.getName(), getArtifact()); return (version != null); }
@Override public void ensureRunning(AccountDeploymentDetails<GoogleAccount> details, GenerateService.ResolvedConfiguration resolvedConfiguration, List<ConfigSource> configSources, boolean recreate) { GoogleDistributedService.super.ensureRunning(details, resolvedConfiguration, configSources, recreate); Vault vault = connectToPrimaryService(details, resolvedConfiguration.getRuntimeSettings()); getToken(details.getDeploymentName(), vault); }
public String getDockerRegistry(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact); return artifactSourcesConfig.mergeWithBomSources(artifactSources).getDockerRegistry(); }
public String getArtifactCommit(String deploymentName, SpinnakerArtifact artifact) { return getBillOfMaterials(deploymentName).getArtifactCommit(artifact.getName()); }
public String getDockerRegistry(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact); return artifactSourcesConfig.mergeWithBomSources(artifactSources).getDockerRegistry(); }
public String getArtifactVersion(String deploymentName, SpinnakerArtifact artifact) { return getBillOfMaterials(deploymentName).getArtifactVersion(artifact.getName()); }
public String getDockerRegistry(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact); return artifactSourcesConfig.mergeWithBomSources(artifactSources).getDockerRegistry(); }
public String getArtifactCommit(String deploymentName, SpinnakerArtifact artifact) { return getBillOfMaterials(deploymentName).getArtifactCommit(artifact.getName()); }
public String getDockerRegistry(String deploymentName, SpinnakerArtifact artifact) { BillOfMaterials.ArtifactSources artifactSources = artifactService.getArtifactSources(deploymentName, artifact); return artifactSourcesConfig.mergeWithBomSources(artifactSources).getDockerRegistry(); }
public String getArtifactVersion(String deploymentName, SpinnakerArtifact artifact) { return getBillOfMaterials(deploymentName).getArtifactVersion(artifact.getName()); }