Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ParseCIDRs (0.17 sec)

  1. cmd/kubeadm/app/apis/kubeadm/validation/validation.go

    // ValidateIPNetFromString validates network portion of ip address
    func ValidateIPNetFromString(subnetStr string, minAddrs int64, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	subnets, err := netutils.ParseCIDRs(strings.Split(subnetStr, ","))
    	if err != nil {
    		allErrs = append(allErrs, field.Invalid(fldPath, subnetStr, "couldn't parse subnet"))
    		return allErrs
    	}
    	switch {
    	// if DualStack only 2 CIDRs allowed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. cmd/cloud-controller-manager/nodeipamcontroller.go

    // error if failed to parse any of the cidrs
    func processCIDRs(cidrsList string) ([]*net.IPNet, bool, error) {
    	cidrsSplit := strings.Split(strings.TrimSpace(cidrsList), ",")
    
    	cidrs, err := netutils.ParseCIDRs(cidrsSplit)
    	if err != nil {
    		return nil, false, err
    	}
    
    	// if cidrs has an error then the previous call will fail
    	// safe to ignore error checking on next call
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 14 19:06:22 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. cmd/kube-controller-manager/app/core.go

    // error if failed to parse any of the cidrs
    func processCIDRs(cidrsList string) ([]*net.IPNet, bool, error) {
    	cidrsSplit := strings.Split(strings.TrimSpace(cidrsList), ",")
    
    	cidrs, err := netutils.ParseCIDRs(cidrsSplit)
    	if err != nil {
    		return nil, false, err
    	}
    
    	// if cidrs has an error then the previous call will fail
    	// safe to ignore error checking on next call
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 39K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/constants/constants.go

    	// service cluster IP range configured via the `--service-cluster-ip-range` flag
    	// of the kube-controller-manager and kube-apiserver.
    	svcSubnets, err := netutils.ParseCIDRs(strings.Split(svcSubnetList, ","))
    	if err != nil {
    		return nil, errors.Wrapf(err, "unable to parse ServiceSubnet %v", svcSubnetList)
    	}
    	if len(svcSubnets) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/proxier_test.go

    func TestCleanLegacyService(t *testing.T) {
    	_, ctx := ktesting.NewTestContext(t)
    	ipt := iptablestest.NewFake()
    	ipvs := ipvstest.NewFake()
    	ipset := ipsettest.NewFake(testIPSetVersion)
    	excludeCIDRs, _ := netutils.ParseCIDRs([]string{"3.3.3.0/24", "4.4.4.0/24"})
    	fp := NewFakeProxier(ctx, ipt, ipvs, ipset, nil, excludeCIDRs, v1.IPv4Protocol)
    
    	// All ipvs services that were processed in the latest sync loop.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/proxier.go

    	serviceHealthServer := healthcheck.NewServiceHealthServer(hostname, recorder, nodePortAddresses, healthzServer)
    
    	// excludeCIDRs has been validated before, here we just parse it to IPNet list
    	parsedExcludeCIDRs, _ := netutils.ParseCIDRs(excludeCIDRs)
    
    	proxier := &Proxier{
    		ipFamily:              ipFamily,
    		svcPortMap:            make(proxy.ServicePortMap),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
Back to top