Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateClientConnectionConfiguration (0.3 sec)

  1. pkg/proxy/apis/config/validation/validation.go

    	allErrs = append(allErrs, validateProxyMode(config.Mode, newPath.Child("Mode"))...)
    	allErrs = append(allErrs, validateClientConnectionConfiguration(config.ClientConnection, newPath.Child("ClientConnection"))...)
    
    	if config.OOMScoreAdj != nil && (*config.OOMScoreAdj < -1000 || *config.OOMScoreAdj > 1000) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/validation/validation.go

    func ValidateKubeSchedulerConfiguration(cc *config.KubeSchedulerConfiguration) utilerrors.Aggregate {
    	var errs []error
    	errs = append(errs, componentbasevalidation.ValidateClientConnectionConfiguration(&cc.ClientConnection, field.NewPath("clientConnection")).ToAggregate())
    	errs = append(errs, componentbasevalidation.ValidateLeaderElectionConfiguration(&cc.LeaderElection, field.NewPath("leaderElection")).ToAggregate())
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. pkg/proxy/apis/config/validation/validation_test.go

    			expectedErrs: field.ErrorList{field.Invalid(newPath.Child("Burst"), int64(-5), "must be greater than or equal to 0")},
    		},
    	} {
    		t.Run(name, func(t *testing.T) {
    			errs := validateClientConnectionConfiguration(testCase.ccc, newPath)
    			assert.Equal(t, testCase.expectedErrs, errs, "did not get expected validation errors")
    		})
    	}
    }
    
    func TestValidateHostPort(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
Back to top