Tabnine Logo
DCOSCluster.getDcosUrl
Code IndexAdd Tabnine 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)

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
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JOptionPane (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top Sublime Text 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