Tabnine Logo
DeckProfileFactory.setProfile
Code IndexAdd Tabnine to your IDE (free)

How to use
setProfile
method
in
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.deck.DeckProfileFactory

Best Java code snippets using com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.deck.DeckProfileFactory.setProfile (Showing top 2 results out of 315)

origin: spinnaker/halyard

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);

  ServiceSettings deckSettings = endpoints.getServiceSettings(Type.DECK);
  ServiceSettings gateSettings = endpoints.getServiceSettings(Type.GATE);
  ApacheSsl apacheSsl= deploymentConfiguration.getSecurity().getUiSecurity().getSsl();
  Map<String, String> env = profile.getEnv();

  if (apacheSsl.isEnabled()) {
   env.put("DECK_HOST", deckSettings.getHost());
   env.put("DECK_PORT", deckSettings.getPort() + "");
   env.put("API_HOST", gateSettings.getBaseUrl());
   env.put("DECK_CERT", apacheSsl.getSslCertificateFile());
   env.put("DECK_KEY", apacheSsl.getSslCertificateKeyFile());
   env.put("PASSPHRASE", apacheSsl.getSslCertificatePassphrase());
  }

  env.put("AUTH_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthn().isEnabled()));
  env.put("FIAT_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled()));
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);

  ServiceSettings deckSettings = endpoints.getServiceSettings(Type.DECK);
  ServiceSettings gateSettings = endpoints.getServiceSettings(Type.GATE);
  ApacheSsl apacheSsl= deploymentConfiguration.getSecurity().getUiSecurity().getSsl();
  Map<String, String> env = profile.getEnv();

  if (apacheSsl.isEnabled()) {
   env.put("DECK_HOST", deckSettings.getHost());
   env.put("DECK_PORT", deckSettings.getPort() + "");
   env.put("API_HOST", gateSettings.getBaseUrl());
   env.put("DECK_CERT", apacheSsl.getSslCertificateFile());
   env.put("DECK_KEY", apacheSsl.getSslCertificateKeyFile());
   env.put("PASSPHRASE", apacheSsl.getSslCertificatePassphrase());
  }

  env.put("AUTH_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthn().isEnabled()));
  env.put("FIAT_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled()));
 }
}
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.deckDeckProfileFactorysetProfile

Popular methods of DeckProfileFactory

  • backupRequiredFiles
  • getProfile

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JCheckBox (javax.swing)
  • Best IntelliJ plugins
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