Tabnine Logo
Profile.getBaseContents
Code IndexAdd Tabnine to your IDE (free)

How to use
getBaseContents
method
in
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.Profile

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

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

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 profile.appendContents(profile.getBaseContents());
 // No modifications are made to user-supplied profiles.
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  profile.appendContents(profile.getBaseContents());
 }
}
origin: spinnaker/halyard

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 profile.appendContents(profile.getBaseContents());
 // No modifications are made to user-supplied profiles.
}
origin: spinnaker/halyard

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  profile.appendContents(profile.getBaseContents());
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 profile.setContents(profile.getBaseContents());
 profile.setExecutable(executable);
}
origin: spinnaker/halyard

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 profile.setContents(profile.getBaseContents());
 profile.setExecutable(executable);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  StringResource template = new StringResource(profile.getBaseContents());
  profile.setRequiredFiles(requiredFiles(deploymentConfiguration));
  Map<String, Object> bindings = getBindings(deploymentConfiguration, endpoints);
  profile.setContents(template.setBindings(bindings).toString());
 }
}
origin: spinnaker/halyard

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  StringResource template = new StringResource(profile.getBaseContents());
  profile.setRequiredFiles(requiredFiles(deploymentConfiguration));
  Map<String, Object> bindings = getBindings(deploymentConfiguration, endpoints);
  profile.setContents(template.setBindings(bindings).toString());
 }
}
origin: spinnaker/halyard

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);
  profile.appendContents("services.fiat.enabled: false")
    .appendContents(profile.getBaseContents())
    .appendContents("pipelineTemplate.enabled: false")
    .appendContents("pipelineTemplates.enabled: false");
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);
  profile.appendContents("services.fiat.enabled: false")
    .appendContents(profile.getBaseContents())
    .appendContents("pipelineTemplate.enabled: false")
    .appendContents("pipelineTemplates.enabled: false");
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 profile.appendContents(profile.getBaseContents());
 Canary canary = deploymentConfiguration.getCanary();
 if (canary.isEnabled()) {
  List<String> files = new ArrayList<>(backupRequiredFiles(canary, deploymentConfiguration.getName()));
  KayentaConfigWrapper kayentaConfig = new KayentaConfigWrapper(endpoints.getServiceSettings(Type.KAYENTA), canary);
  profile.appendContents(yamlToString(kayentaConfig)).setRequiredFiles(files);
 }
}
origin: spinnaker/halyard

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 profile.appendContents(profile.getBaseContents());
 Canary canary = deploymentConfiguration.getCanary();
 if (canary.isEnabled()) {
  List<String> files = new ArrayList<>(backupRequiredFiles(canary, deploymentConfiguration.getName()));
  KayentaConfigWrapper kayentaConfig = new KayentaConfigWrapper(endpoints.getServiceSettings(Type.KAYENTA), canary);
  profile.appendContents(yamlToString(kayentaConfig)).setRequiredFiles(files);
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 Authz authz = deploymentConfiguration.getSecurity().getAuthz();
 List<String> files = backupRequiredFiles(authz, deploymentConfiguration.getName());
 AuthConfig authConfig = new AuthConfig().setAuth(authz);
 profile.appendContents(yamlToString(authConfig))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(files);
}
origin: spinnaker/halyard

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 Authz authz = deploymentConfiguration.getSecurity().getAuthz();
 List<String> files = backupRequiredFiles(authz, deploymentConfiguration.getName());
 AuthConfig authConfig = new AuthConfig().setAuth(authz);
 profile.appendContents(yamlToString(authConfig))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(files);
}
origin: spinnaker/halyard

@Override
public void setProfile(Profile profile,
  DeploymentConfiguration deploymentConfiguration,
  SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 Security security = deploymentConfiguration.getSecurity();
 List<String> requiredFiles = backupRequiredFiles(security.getApiSecurity(), deploymentConfiguration.getName());
 requiredFiles.addAll(backupRequiredFiles(security.getAuthn(), deploymentConfiguration.getName()));
 requiredFiles.addAll(backupRequiredFiles(security.getAuthz(), deploymentConfiguration.getName()));
 GateConfig gateConfig = getGateConfig(endpoints.getServiceSettings(Type.GATE), security);
 gateConfig.getCors().setAllowedOriginsPattern(security.getApiSecurity());
 profile.appendContents(yamlToString(gateConfig))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(requiredFiles);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public void setProfile(Profile profile,
  DeploymentConfiguration deploymentConfiguration,
  SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 Security security = deploymentConfiguration.getSecurity();
 List<String> requiredFiles = backupRequiredFiles(security.getApiSecurity(), deploymentConfiguration.getName());
 requiredFiles.addAll(backupRequiredFiles(security.getAuthn(), deploymentConfiguration.getName()));
 requiredFiles.addAll(backupRequiredFiles(security.getAuthz(), deploymentConfiguration.getName()));
 GateConfig gateConfig = getGateConfig(endpoints.getServiceSettings(Type.GATE), security);
 gateConfig.getCors().setAllowedOriginsPattern(security.getApiSecurity());
 profile.appendContents(yamlToString(gateConfig))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(requiredFiles);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 Providers providers = deploymentConfiguration.getProviders();
 Providers otherProviders = getImageProviders(profile.getVersion(), deploymentConfiguration.getName());
 augmentProvidersBaseImages(providers, otherProviders);
 List<String> files = backupRequiredFiles(providers, deploymentConfiguration.getName());
 profile.appendContents(yamlToString(providers))
   .appendContents(profile.getBaseContents())
   .setRequiredFiles(files);
}
origin: spinnaker/halyard

 @Override
 public void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);
  Providers providers = deploymentConfiguration.getProviders();
  if (providers.getDockerRegistry().isEnabled()) {
   profile.appendContents("dockerRegistry.enabled: true");
  }

  Cis cis = deploymentConfiguration.getCi();
  List<String> files = backupRequiredFiles(cis, deploymentConfiguration.getName());
  profile.appendContents(yamlToString(cis))
    .appendContents(profile.getBaseContents())
    .setRequiredFiles(files);
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 public void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);
  Providers providers = deploymentConfiguration.getProviders();
  if (providers.getDockerRegistry().isEnabled()) {
   profile.appendContents("dockerRegistry.enabled: true");
  }

  Cis cis = deploymentConfiguration.getCi();
  List<String> files = backupRequiredFiles(cis, deploymentConfiguration.getName());
  profile.appendContents(yamlToString(cis))
    .appendContents(profile.getBaseContents())
    .setRequiredFiles(files);
 }
}
origin: spinnaker/halyard

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 profile.appendContents(profile.getBaseContents());
 AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws();
 if (awsProvider.isEnabled()) {
  profile.appendContents("default.bake.account: " + awsProvider.getPrimaryAccount());
  profile.appendContents("default.securityGroups: ");
  profile.appendContents("default.vpc.securityGroups: ");
 }
 Webhook webhook = deploymentConfiguration.getWebhook();
 List<String> files = backupRequiredFiles(webhook, deploymentConfiguration.getName());
 profile.setRequiredFiles(files);
 profile.appendContents(yamlToString(new WebhookWrapper(webhook)));
 String pipelineTemplates = Boolean.toString(deploymentConfiguration.getFeatures().getPipelineTemplates() != null ? deploymentConfiguration.getFeatures().getPipelineTemplates() : false);
 profile.appendContents("pipelineTemplates.enabled: " + pipelineTemplates);
 // For backward compatibility
 profile.appendContents("pipelineTemplate.enabled: " + pipelineTemplates);
}
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profileProfilegetBaseContents

Popular methods of Profile

  • <init>
  • appendContents
  • assumeMetadata
  • getContents
  • getEnv
  • getGroup
  • getName
  • getOutputFile
  • getRequiredFiles
  • getStagedFile
  • getUser
  • getVersion
  • getUser,
  • getVersion,
  • isExecutable,
  • preppendContents,
  • setContents,
  • setExecutable,
  • setRequiredFiles,
  • setUser,
  • writeStagedFile

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for WebStorm
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