Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 182 for netutils (0.21 sec)

  1. pkg/controller/nodeipam/ipam/sync/sync_test.go

    	"k8s.io/klog/v2"
    	"k8s.io/klog/v2/ktesting"
    	"k8s.io/kubernetes/pkg/controller/nodeipam/ipam/cidrset"
    	"k8s.io/kubernetes/pkg/controller/nodeipam/ipam/test"
    	netutils "k8s.io/utils/net"
    
    	v1 "k8s.io/api/core/v1"
    )
    
    var (
    	_, clusterCIDRRange, _ = netutils.ParseCIDRSloppy("10.1.0.0/16")
    )
    
    type fakeEvent struct {
    	nodeName string
    	reason   string
    }
    
    type fakeAPIs struct {
    	aliasRange    *net.IPNet
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. pkg/proxy/apis/config/v1alpha1/defaults.go

    	logsapi "k8s.io/component-base/logs/api/v1"
    	"k8s.io/kubernetes/pkg/cluster/ports"
    	"k8s.io/kubernetes/pkg/kubelet/qos"
    	proxyutil "k8s.io/kubernetes/pkg/proxy/util"
    	netutils "k8s.io/utils/net"
    	"k8s.io/utils/ptr"
    )
    
    func addDefaultingFuncs(scheme *kruntime.Scheme) error {
    	return RegisterDefaults(scheme)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:33:53 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/config_test.go

    	"k8s.io/apiserver/pkg/server/healthz"
    	"k8s.io/client-go/informers"
    	"k8s.io/client-go/kubernetes/fake"
    	"k8s.io/client-go/rest"
    	"k8s.io/component-base/tracing"
    	"k8s.io/klog/v2/ktesting"
    	netutils "k8s.io/utils/net"
    )
    
    func TestAuthorizeClientBearerTokenNoops(t *testing.T) {
    	// All of these should do nothing (not panic, no side-effects)
    	cfgGens := []func() *rest.Config{
    		func() *rest.Config { return nil },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. cmd/kube-controller-manager/app/core.go

    	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
    	dualstack, _ := netutils.IsDualStackCIDRs(cidrs)
    
    	return cidrs, dualstack, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 39K bytes
    - Viewed (0)
  5. pkg/controller/endpointslicemirroring/utils.go

    	"k8s.io/client-go/tools/cache"
    	"k8s.io/client-go/tools/leaderelection/resourcelock"
    	endpointsliceutil "k8s.io/endpointslice/util"
    	"k8s.io/kubernetes/pkg/apis/discovery/validation"
    	netutils "k8s.io/utils/net"
    )
    
    // addrTypePortMapKey is used to uniquely identify groups of endpoint ports and
    // address types.
    type addrTypePortMapKey string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/config/common.go

    	}
    	return nil
    }
    
    // ChooseAPIServerBindAddress is a wrapper for netutil.ResolveBindAddress that also handles
    // the case where no default routes were found and an IP for the API server could not be obtained.
    func ChooseAPIServerBindAddress(bindAddress net.IP) (net.IP, error) {
    	ip, err := netutil.ResolveBindAddress(bindAddress)
    	if err != nil {
    		if netutil.IsNoRoutesError(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  7. pkg/proxy/util/utils_test.go

    limitations under the License.
    */
    
    package util
    
    import (
    	"net"
    	"reflect"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/sets"
    	netutils "k8s.io/utils/net"
    )
    
    func TestValidateWorks(t *testing.T) {
    	if isValidEndpoint("", 0) {
    		t.Errorf("Didn't fail for empty set")
    	}
    	if isValidEndpoint("foobar", 0) {
    		t.Errorf("Didn't fail with invalid port")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/controller/repairip.go

    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    	"k8s.io/kubernetes/pkg/apis/core/v1/helper"
    	"k8s.io/kubernetes/pkg/registry/core/service/ipallocator"
    	"k8s.io/kubernetes/pkg/util/iptree"
    	"k8s.io/utils/clock"
    	netutils "k8s.io/utils/net"
    )
    
    const (
    	// maxRetries is the number of times a service will be retried before it is dropped out of the queue.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. pkg/apis/networking/validation/validation.go

    	"k8s.io/apimachinery/pkg/util/validation/field"
    	api "k8s.io/kubernetes/pkg/apis/core"
    	apivalidation "k8s.io/kubernetes/pkg/apis/core/validation"
    	"k8s.io/kubernetes/pkg/apis/networking"
    	netutils "k8s.io/utils/net"
    	"k8s.io/utils/ptr"
    )
    
    const (
    	annotationIngressClass       = "kubernetes.io/ingress.class"
    	maxLenIngressClassController = 250
    )
    
    var (
    	supportedPathTypes = sets.NewString(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 07 14:48:01 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    	runtimeutil "k8s.io/kubernetes/pkg/kubelet/kuberuntime/util"
    	"k8s.io/kubernetes/pkg/kubelet/util"
    	"k8s.io/kubernetes/pkg/kubelet/util/format"
    	netutils "k8s.io/utils/net"
    )
    
    // createPodSandbox creates a pod sandbox and returns (podSandBoxID, message, error).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top