Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for validateTolerations (0.23 sec)

  1. plugin/pkg/admission/podtolerationrestriction/apis/podtolerationrestriction/validation/validation.go

    	allErrs := field.ErrorList{}
    	fldpath := field.NewPath("podtolerationrestriction")
    	allErrs = append(allErrs, validation.ValidateTolerations(config.Default, fldpath.Child("default"))...)
    	allErrs = append(allErrs, validation.ValidateTolerations(config.Whitelist, fldpath.Child("whitelist"))...)
    	if len(allErrs) > 0 {
    		return fmt.Errorf("invalid config: %v", allErrs)
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  2. pkg/apis/node/validation/validation.go

    	}
    	allErrs = append(allErrs, validateTolerations(s.Tolerations, fldPath.Child("tolerations"))...)
    	return allErrs
    }
    
    func validateTolerations(tolerations []core.Toleration, fldPath *field.Path) field.ErrorList {
    	allErrs := corevalidation.ValidateTolerations(tolerations, fldPath.Child("tolerations"))
    	// Ensure uniquenes of tolerations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  3. pkg/util/tolerations/tolerations_test.go

    			gen.TolerationSeconds = utilpointer.Int64Ptr(r.Int63n(10))
    		}
    		// Ensure only valid tolerations are generated.
    		require.NoError(t, validation.ValidateTolerations([]api.Toleration{gen}, field.NewPath("")).ToAggregate(), "%#v", gen)
    		return gen
    	}
    	genTolerations := func() []api.Toleration {
    		result := []api.Toleration{}
    		for i := 0; i < r.Intn(10); i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 26 22:25:49 UTC 2019
    - 11.4K bytes
    - Viewed (0)
  4. pkg/apis/core/validation/validation.go

    			allErrs = append(allErrs, ValidateDNS1123Subdomain(hostname, fldPath.Index(i).Child("hostnames").Index(j))...)
    		}
    	}
    	return allErrs
    }
    
    // ValidateTolerations tests if given tolerations have valid data.
    func ValidateTolerations(tolerations []core.Toleration, fldPath *field.Path) field.ErrorList {
    	allErrors := field.ErrorList{}
    	for i, toleration := range tolerations {
    		idxPath := fldPath.Index(i)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r81/DependencyArtifactDownloadProgressEventCrossVersionTest.groovy

                    .run()
            }
    
            then:
    
            events.operations.size() == 3
            validateOperations(events, projectFModuleMissing, projectF2)
            events.operations.pop().result.class.getSimpleName() == DefaultFileDownloadSuccessResult.class.getSimpleName()
        }
    
        private validateOperations(ProgressEvents events, MavenHttpModule projectFModuleMissing, MavenHttpModule projectF2) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

    // individual function table and then checks that the function table for a
    // specific file type exists if the plugin offers support for creating that
    // type of files.
    static Status ValidateOperations(const TF_FilesystemPluginOps* ops) {
      TF_RETURN_IF_ERROR(ValidateHelper(ops->filesystem_ops));
      TF_RETURN_IF_ERROR(ValidateHelper(ops->random_access_file_ops));
      TF_RETURN_IF_ERROR(ValidateHelper(ops->writable_file_ops));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 07 22:08:43 UTC 2023
    - 12.8K bytes
    - Viewed (0)
Back to top