Tabnine Logo
DeploymentEnvironment$Vault
Code IndexAdd Tabnine to your IDE (free)

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

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

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

 vault = new DeploymentEnvironment.Vault();
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

 vault = new DeploymentEnvironment.Vault();
deploymentEnvironment.setConsul(consul);
vault.setAddress(isSet(vaultAddress) ? vaultAddress : vault.getAddress());
vault.setEnabled(isSet(vaultEnabled) ? vaultEnabled : vault.isEnabled());
deploymentEnvironment.setVault(vault);
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());
  }
 }
}
com.netflix.spinnaker.halyard.config.model.v1.nodeDeploymentEnvironment$Vault

Most used methods

  • getAddress
  • <init>
  • isEnabled
  • setAddress
  • setEnabled

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Best plugins for Eclipse
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