Tabnine Logo
com.netflix.spinnaker.halyard.config.validate.v1.canary.google
Code IndexAdd Tabnine to your IDE (free)

How to use com.netflix.spinnaker.halyard.config.validate.v1.canary.google

Best Java code snippets using com.netflix.spinnaker.halyard.config.validate.v1.canary.google (Showing top 4 results out of 315)

origin: spinnaker/halyard

 @Override
 public void validate(ConfigProblemSetBuilder p, GoogleCanaryServiceIntegration n) {
  GoogleCanaryAccountValidator googleCanaryAccountValidator =
    new GoogleCanaryAccountValidator()
      .setHalyardVersion(halyardVersion)
      .setRegistry(registry)
      .setTaskScheduler(taskScheduler);

  if (n.isGcsEnabled()) {
   List<GoogleCanaryAccount> accountsWithBucket =
     n.getAccounts()
       .stream()
       .filter(a -> a.getBucket() != null)
       .collect(Collectors.toList());

   if (CollectionUtils.isEmpty(accountsWithBucket)) {
    p.addProblem(Problem.Severity.ERROR, "At least one Google account must specify a bucket if GCS is enabled.");
   } else {
    accountsWithBucket.forEach(a -> googleCanaryAccountValidator.validate(p, a));
   }
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

 @Override
 public void validate(ConfigProblemSetBuilder p, GoogleCanaryServiceIntegration n) {
  GoogleCanaryAccountValidator googleCanaryAccountValidator = new GoogleCanaryAccountValidator(halyardVersion);

  n.getAccounts().forEach(a -> googleCanaryAccountValidator.validate(p, a));

  if (n.isGcsEnabled()) {
   List<GoogleCanaryAccount> accountsWithBucket =
     n.getAccounts()
       .stream()
       .filter(a -> a.getBucket() != null)
       .collect(Collectors.toList());

   if (CollectionUtils.isEmpty(accountsWithBucket)) {
    p.addProblem(Problem.Severity.ERROR, "At least one Google account must specify a bucket if GCS is enabled.");
   }
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

GoogleCanaryServiceIntegration googleCanaryServiceIntegration = (GoogleCanaryServiceIntegration)s;
new GoogleCanaryValidator().setHalyardVersion(halyardVersion).setRegistry(registry).validate(p, googleCanaryServiceIntegration);
origin: spinnaker/halyard

GoogleCanaryServiceIntegration googleCanaryServiceIntegration = (GoogleCanaryServiceIntegration)s;
new GoogleCanaryValidator()
  .setHalyardVersion(halyardVersion)
  .setRegistry(registry)
  .setTaskScheduler(taskScheduler)
  .validate(p, googleCanaryServiceIntegration);
com.netflix.spinnaker.halyard.config.validate.v1.canary.google

Most used classes

  • GoogleCanaryAccountValidator
  • GoogleCanaryValidator
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