Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 130 for netutils (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/webhook/client.go

    	"k8s.io/apimachinery/pkg/runtime/serializer"
    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    	"k8s.io/apiserver/pkg/util/x509metrics"
    	"k8s.io/client-go/rest"
    	"k8s.io/utils/lru"
    	netutils "k8s.io/utils/net"
    )
    
    const (
    	defaultCacheSize = 200
    )
    
    // ClientConfig defines parameters required for creating a hook client.
    type ClientConfig struct {
    	Name     string
    	URL      string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 09:09:10 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go

    limitations under the License.
    */
    
    package validation
    
    import (
    	"fmt"
    	"math"
    	"regexp"
    	"strings"
    	"unicode"
    
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	netutils "k8s.io/utils/net"
    )
    
    const qnameCharFmt string = "[A-Za-z0-9]"
    const qnameExtCharFmt string = "[-A-Za-z0-9_.]"
    const qualifiedNameFmt string = "(" + qnameCharFmt + qnameExtCharFmt + "*)?" + qnameCharFmt
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 16:08:43 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top