Codota Logo
DCOSCluster.getDcosUrl
Code IndexAdd Codota to your IDE (free)

How to use
getDcosUrl
method
in
com.netflix.spinnaker.halyard.config.model.v1.providers.dcos.DCOSCluster

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.providers.dcos.DCOSCluster.getDcosUrl (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: spinnaker/halyard

 @Override
 public void validate(final ConfigProblemSetBuilder problems, final DCOSCluster cluster) {

  if (cluster.getInsecureSkipTlsVerify() != null && cluster.getInsecureSkipTlsVerify()) {
   problems.addProblem(WARNING, "You've chosen to not validate SSL connections. This setup is not recommended in production deployments.");
  }

  if (!Strings.isNullOrEmpty(cluster.getCaCertFile())) {
   String resolvedServiceKey = ValidatingFileReader.contents(problems, cluster.getCaCertFile());

   if (Strings.isNullOrEmpty(resolvedServiceKey)) {
    problems.addProblem(ERROR, "The supplied CA certificate file does not exist or is empty.")
        .setRemediation("Supply a valid CA certificate file.");
   }
  }

  if (Strings.isNullOrEmpty(cluster.getDcosUrl())) {
   problems.addProblem(ERROR, "Cluster must have a URL");
  }

  final DCOSCluster.LoadBalancer loadBalancer = cluster.getLoadBalancer();
  if (loadBalancer == null || Strings.isNullOrEmpty(loadBalancer.getImage())) {
   problems.addProblem(WARNING,
     "Load balancer pipeline stages will not be able to be used unless a marathon-lb image is specified");
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

 @Override
 public void validate(final ConfigProblemSetBuilder problems, final DCOSCluster cluster) {

  if (cluster.getInsecureSkipTlsVerify() != null && cluster.getInsecureSkipTlsVerify()) {
   problems.addProblem(WARNING, "You've chosen to not validate SSL connections. This setup is not recommended in production deployments.");
  }

  if (!Strings.isNullOrEmpty(cluster.getCaCertFile())) {
   String resolvedServiceKey = ValidatingFileReader.contents(problems, cluster.getCaCertFile());

   if (Strings.isNullOrEmpty(resolvedServiceKey)) {
    problems.addProblem(ERROR, "The supplied CA certificate file does not exist or is empty.")
        .setRemediation("Supply a valid CA certificate file.");
   }
  }

  if (Strings.isNullOrEmpty(cluster.getDcosUrl())) {
   problems.addProblem(ERROR, "Cluster must have a URL");
  }

  final DCOSCluster.LoadBalancer loadBalancer = cluster.getLoadBalancer();
  if (loadBalancer == null || Strings.isNullOrEmpty(loadBalancer.getImage())) {
   problems.addProblem(WARNING,
     "Load balancer pipeline stages will not be able to be used unless a marathon-lb image is specified");
  }
 }
}
com.netflix.spinnaker.halyard.config.model.v1.providers.dcosDCOSClustergetDcosUrl

Popular methods of DCOSCluster

  • getLoadBalancer
  • getName
  • <init>
  • getCaCertFile
  • getInsecureSkipTlsVerify
  • hashCode
  • setCaCertFile
  • setDcosUrl
  • setInsecureSkipTlsVerify
  • setLoadBalancer
  • setName
  • setName

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JCheckBox (javax.swing)
  • JFileChooser (javax.swing)
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