Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateEndpointSliceCreate (0.48 sec)

  1. pkg/apis/discovery/validation/validation.go

    	allErrs = append(allErrs, validatePorts(endpointSlice.Ports, field.NewPath("ports"))...)
    
    	return allErrs
    }
    
    // ValidateEndpointSliceCreate validates an EndpointSlice when it is created.
    func ValidateEndpointSliceCreate(endpointSlice *discovery.EndpointSlice) field.ErrorList {
    	return ValidateEndpointSlice(endpointSlice)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 08:49:15 UTC 2021
    - 7.8K bytes
    - Viewed (0)
  2. pkg/registry/discovery/endpointslice/strategy.go

    }
    
    // Validate validates a new EndpointSlice.
    func (endpointSliceStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	endpointSlice := obj.(*discovery.EndpointSlice)
    	err := validation.ValidateEndpointSliceCreate(endpointSlice)
    	return err
    }
    
    // WarningsOnCreate returns warnings for the creation of the given object.
    func (endpointSliceStrategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 02 10:00:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. pkg/apis/discovery/validation/validation_test.go

    				Endpoints: []discovery.Endpoint{{
    					Addresses: generateIPAddresses(1),
    				}},
    			},
    		},
    	}
    
    	for name, testCase := range testCases {
    		t.Run(name, func(t *testing.T) {
    			errs := ValidateEndpointSliceCreate(testCase.endpointSlice)
    			if len(errs) != testCase.expectedErrors {
    				t.Errorf("Expected %d errors, got %d errors: %v", testCase.expectedErrors, len(errs), errs)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 10:48:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
Back to top