- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 182 for netutils (0.29 sec)
-
pkg/kubeapiserver/options/options.go
"net" utilnet "k8s.io/apimachinery/pkg/util/net" netutils "k8s.io/utils/net" ) // DefaultServiceNodePortRange is the default port range for NodePort services. var DefaultServiceNodePortRange = utilnet.PortRange{Base: 30000, Size: 2768} // DefaultServiceIPCIDR is a CIDR notation of IP range from which to allocate service cluster IPs var DefaultServiceIPCIDR = net.IPNet{IP: netutils.ParseIPSloppy("10.0.0.0"), Mask: net.CIDRMask(24, 32)}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 20 08:42:09 UTC 2021 - 1.1K bytes - Viewed (0) -
pkg/kubelet/nodestatus/setters_test.go
// IPs" etc because we won't have gotten this far with an invalid // config like that. name: "Dual-stack cloud, with dual-stack nodeIPs", nodeIP: netutils.ParseIPSloppy("2600:1f14:1d4:d101::ba3d"), secondaryNodeIP: netutils.ParseIPSloppy("10.1.1.2"), cloudProviderType: cloudProviderExternal, nodeAddresses: []v1.NodeAddress{ {Type: v1.NodeInternalIP, Address: "10.1.1.1"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 21:47:24 UTC 2024 - 76.1K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/apiendpoint.go
See the License for the specific language governing permissions and limitations under the License. */ package kubeadm import ( "net" "strconv" netutils "k8s.io/utils/net" "github.com/pkg/errors" ) // APIEndpointFromString returns an APIEndpoint struct based on a "host:port" raw string. func APIEndpointFromString(apiEndpoint string) (APIEndpoint, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 20 08:42:09 UTC 2021 - 1.6K bytes - Viewed (0) -
pkg/proxy/util/endpoints.go
*/ package util import ( "net" "k8s.io/klog/v2" netutils "k8s.io/utils/net" ) // IPPart returns just the IP part of an IP or IP:port or endpoint string. If the IP // part is an IPv6 address enclosed in brackets (e.g. "[fd00:1::5]:9999"), // then the brackets are stripped as well. func IPPart(s string) string { if ip := netutils.ParseIPSloppy(s); ip != nil { // IP address without port return s }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 11:57:43 UTC 2024 - 1.3K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/cidrallocator.go
address, _ := netip.AddrFromSlice(bytes) return address } // Convert netutils.IPFamily to v1.IPFamily // TODO: consolidate helpers // copied from pkg/proxy/util/utils.go func convertToV1IPFamily(ipFamily netutils.IPFamily) v1.IPFamily { switch ipFamily { case netutils.IPv4: return v1.IPv4Protocol case netutils.IPv6: return v1.IPv6Protocol } return v1.IPFamilyUnknown
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 13.2K bytes - Viewed (0) -
cmd/kube-apiserver/app/options/validation.go
serviceIPRange, _, err := controlplaneapiserver.ServiceIPRange(extra.PrimaryServiceClusterIPRange) if err != nil { return []error{fmt.Errorf("error determining service IP ranges: %w", err)} } if netutils.IsIPv4CIDR(&serviceIPRange) != netutils.IsIPv4(generic.AdvertiseAddress) { return []error{fmt.Errorf("service IP family %q must match public address family %q", extra.PrimaryServiceClusterIPRange.String(), generic.AdvertiseAddress.String())} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:06 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/bitmap.go
func New(cidr *net.IPNet, allocatorFactory allocator.AllocatorWithOffsetFactory) (*Range, error) { max := netutils.RangeSize(cidr) base := netutils.BigForIP(cidr.IP) rangeSpec := cidr.String() var family api.IPFamily if netutils.IsIPv6CIDR(cidr) { family = api.IPv6Protocol // Limit the max size, since the allocator keeps a bitmap of that size. if max > 65536 { max = 65536
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 10.8K bytes - Viewed (0) -
pkg/proxy/ipvs/proxier_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 01:31:57 UTC 2024 - 186.8K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/test/utils.go
"k8s.io/kubernetes/pkg/controller/testutil" netutils "k8s.io/utils/net" ) const NodePollInterval = 10 * time.Millisecond var AlwaysReady = func() bool { return true } // MustParseCIDR returns the CIDR range parsed from s or panics if the string // cannot be parsed. func MustParseCIDR(s string) *net.IPNet { _, ret, err := netutils.ParseCIDRSloppy(s) if err != nil { panic(err) } return ret
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 06 00:10:39 UTC 2022 - 2K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/cidrset/cidr_set_test.go
// operations have been executed. numAllocatable24s := (1 << 8) - 3 _, clusterCIDR, _ := netutils.ParseCIDRSloppy(clusterCIDRStr) a, err := NewCIDRSet(clusterCIDR, 24) if err != nil { t.Fatalf("Error allocating CIDRSet") } // Execute the operations for _, op := range operations { _, cidr, _ := netutils.ParseCIDRSloppy(op.cidrStr) switch op.operation { case "occupy": a.Occupy(cidr)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 11 08:53:03 UTC 2023 - 29.5K bytes - Viewed (0)