Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sameLoadBalancerClass (0.2 sec)

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

    	}
    
    	// If a user is switching to a type that doesn't need LoadBalancerClass AND they did not change
    	// this field, it is safe to drop it.
    	if canSetLoadBalancerClass(oldSvc) && !canSetLoadBalancerClass(newSvc) && sameLoadBalancerClass(oldSvc, newSvc) {
    		newSvc.Spec.LoadBalancerClass = nil
    	}
    
    	// If a user is switching to a type that doesn't need ExternalTrafficPolicy
    	// AND they did not change this field, it is safe to drop it.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:36 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. pkg/apis/core/validation/validation.go

    func isTypeLoadBalancer(service *core.Service) bool {
    	return service.Spec.Type == core.ServiceTypeLoadBalancer
    }
    
    // sameLoadBalancerClass check two services have the same loadBalancerClass or not
    func sameLoadBalancerClass(oldService, service *core.Service) bool {
    	if oldService.Spec.LoadBalancerClass == nil && service.Spec.LoadBalancerClass == nil {
    		return true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top