Codota Logo
DeploymentEnvironment$Vault.getAddress
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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: 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);
origin: spinnaker/halyard

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

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
  • startActivity (Activity)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now