Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValidateEndpointsUpdate (0.46 sec)

  1. pkg/registry/core/endpoint/strategy.go

    	return true
    }
    
    // ValidateUpdate is the default update validation for an end user.
    func (endpointsStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	return validation.ValidateEndpointsUpdate(obj.(*api.Endpoints), old.(*api.Endpoints))
    }
    
    // WarningsOnUpdate returns warnings for the given update.
    func (endpointsStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation.go

    	return ValidateEndpoints(endpoints)
    }
    
    // ValidateEndpointsUpdate validates Endpoints on update. NodeName changes are
    // allowed during update to accommodate the case where nodeIP or PodCIDR is
    // reused. An existing endpoint ip will have a different nodeName if this
    // happens.
    func ValidateEndpointsUpdate(newEndpoints, oldEndpoints *core.Endpoints) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  3. pkg/apis/core/validation/validation_test.go

    			oldEndpoints := baseEndpoints.DeepCopy()
    			tc.tweakOldEndpoints(oldEndpoints)
    			newEndpoints := baseEndpoints.DeepCopy()
    			tc.tweakNewEndpoints(newEndpoints)
    
    			errs := ValidateEndpointsUpdate(newEndpoints, oldEndpoints)
    			if len(errs) != tc.numExpectedErrors {
    				t.Errorf("Expected %d validation errors, got %d: %v", tc.numExpectedErrors, len(errs), errs)
    			}
    
    		})
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top