Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsServiceIPSet (0.24 sec)

  1. pkg/proxy/util/utils.go

    	}
    	return false
    }
    
    // ShouldSkipService checks if a given service should skip proxying
    func ShouldSkipService(service *v1.Service) bool {
    	// if ClusterIP is "None" or empty, skip proxying
    	if !helper.IsServiceIPSet(service) {
    		klog.V(3).InfoS("Skipping service due to cluster IP", "service", klog.KObj(service), "clusterIP", service.Spec.ClusterIP)
    		return true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/apis/core/helper/helpers_test.go

    			},
    
    			output: true,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			s := core.Service{
    				Spec: tc.input,
    			}
    			if IsServiceIPSet(&s) != tc.output {
    				t.Errorf("case, input: %v, expected: %v, got: %v", tc.input, tc.output, !tc.output)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top