congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DeploymentEnvironment$Vault.getAddress
Code IndexAdd Tabnine to your IDE (free)

How to use
getAddress
method
in
com.netflix.spinnaker.halyard.config.model.v1.node.DeploymentEnvironment$Vault

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.node.DeploymentEnvironment$Vault.getAddress (Showing top 4 results out of 315)

origin: spinnaker/halyard

 public void publishSecret(DeploymentConfiguration deploymentConfiguration, String name, String contents) {
  String vaultAddress = deploymentConfiguration.getDeploymentEnvironment().getVault().getAddress();
  String encodedContents = Base64.getEncoder().encodeToString(contents.getBytes());
  String secretName = vaultSecretPrefix + name;

  List<String> command = new ArrayList<>();
  command.add("vault");
  command.add("write");
  command.add("--address");
  command.add(vaultAddress);
  command.add(secretName);
  command.add(encodedContents);

  JobRequest request = new JobRequest()
    .setTokenizedCommand(command)
    .setTimeoutMillis(TimeUnit.SECONDS.toMillis(vaultTimeoutSeconds));

  String id = jobExecutor.startJob(request);
  DaemonTaskHandler.safeSleep(TimeUnit.SECONDS.toMillis(5));
  JobStatus status = jobExecutor.updateJob(id);

  if (!status.getResult().equals(JobStatus.Result.SUCCESS)) {
   throw new HalException(Problem.Severity.FATAL, "Failed to publish secret " + name + ": " + status.getStdOut() + status.getStdErr());
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 public void publishSecret(DeploymentConfiguration deploymentConfiguration, String name, String contents) {
  String vaultAddress = deploymentConfiguration.getDeploymentEnvironment().getVault().getAddress();
  String encodedContents = Base64.getEncoder().encodeToString(contents.getBytes());
  String secretName = vaultSecretPrefix + name;

  List<String> command = new ArrayList<>();
  command.add("vault");
  command.add("write");
  command.add("--address");
  command.add(vaultAddress);
  command.add(secretName);
  command.add(encodedContents);

  JobRequest request = new JobRequest()
    .setTokenizedCommand(command)
    .setTimeoutMillis(TimeUnit.SECONDS.toMillis(vaultTimeoutSeconds));

  String id = jobExecutor.startJob(request);
  DaemonTaskHandler.safeSleep(TimeUnit.SECONDS.toMillis(5));
  JobStatus status = jobExecutor.updateJob(id);

  if (!status.getResult().equals(JobStatus.Result.SUCCESS)) {
   throw new HalException(Problem.Severity.FATAL, "Failed to publish secret " + name + ": " + status.getStdOut() + status.getStdErr());
  }
 }
}
origin: spinnaker/halyard

deploymentEnvironment.setConsul(consul);
vault.setAddress(isSet(vaultAddress) ? vaultAddress : vault.getAddress());
vault.setEnabled(isSet(vaultEnabled) ? vaultEnabled : vault.isEnabled());
deploymentEnvironment.setVault(vault);
origin: com.netflix.spinnaker.halyard/halyard-cli

deploymentEnvironment.setConsul(consul);
vault.setAddress(isSet(vaultAddress) ? vaultAddress : vault.getAddress());
vault.setEnabled(isSet(vaultEnabled) ? vaultEnabled : vault.isEnabled());
deploymentEnvironment.setVault(vault);
com.netflix.spinnaker.halyard.config.model.v1.nodeDeploymentEnvironment$VaultgetAddress

Popular methods of DeploymentEnvironment$Vault

  • <init>
  • isEnabled
  • setAddress
  • setEnabled

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Reference (javax.naming)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • From CI to AI: The AI layer in your organization
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