- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 74 for ParseIPSloppy (0.38 sec)
-
pkg/controller/endpointslicemirroring/utils.go
return discovery.AddressTypeIPv6 } return discovery.AddressTypeIPv4 } func getAddressType(address string) *discovery.AddressType { ip := netutils.ParseIPSloppy(address) if ip == nil { return nil } addressType := discovery.AddressTypeIPv4 if ip.To4() == nil { addressType = discovery.AddressTypeIPv6 } return &addressType }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 8.8K bytes - Viewed (0) -
pkg/proxy/winkernel/proxier.go
info := &endpointInfo{ ip: baseInfo.IP(), port: uint16(baseInfo.Port()), isLocal: baseInfo.IsLocal(), macAddress: conjureMac("02-11", netutils.ParseIPSloppy(baseInfo.IP())), refCount: new(uint16), hnsID: "", hns: proxier.hns, ready: baseInfo.IsReady(), serving: baseInfo.IsServing(), terminating: baseInfo.IsTerminating(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 13:25:06 UTC 2024 - 59K bytes - Viewed (0) -
pkg/controlplane/instance_test.go
}, }, Extra: Extra{ APIServerServicePort: 443, MasterCount: 1, EndpointReconcilerType: reconcilers.MasterCountReconcilerType, ServiceIPRange: net.IPNet{IP: netutils.ParseIPSloppy("10.0.0.0"), Mask: net.CIDRMask(24, 32)}, }, } storageFactoryConfig := kubeapiserver.NewStorageFactoryConfig() storageConfig.StorageObjectCountTracker = config.ControlPlane.Generic.StorageObjectCountTracker
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:50:04 UTC 2024 - 21.5K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/renewal/readwriter_test.go
CommonName: "test-common-name", Organization: testCertOrganization, Usages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, AltNames: certutil.AltNames{ IPs: []net.IP{netutils.ParseIPSloppy("10.100.0.1")}, DNSNames: []string{"test-domain.space"}, }, NotBefore: notBefore, }, NotAfter: notAfter, } cert, key, err := pkiutil.NewCertAndKey(caCert, caKey, cfg) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:17:24 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/ipset.go
//check if IP and Protocol of Entry is valid. if valid := e.checkIPandProtocol(set); !valid { return false } // IP2 can not be empty for `hash:ip,port,ip` type ip set if netutils.ParseIPSloppy(e.IP2) == nil { klog.ErrorS(validationError, "error parsing second ip address", "entry", e, "ip", e.IP2, "ipset", set) return false } case HashIPPortNet: //check if IP and Protocol of Entry is valid.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 17.1K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/controller/repairip.go
// nothing to do return nil } if !helper.IsServiceIPSet(svc) { // didn't need a ClusterIP return nil } for _, clusterIP := range svc.Spec.ClusterIPs { ip := netutils.ParseIPSloppy(clusterIP) if ip == nil { // ClusterIP is corrupt, ClusterIPs are already validated, but double checking here // in case there are some inconsistencies with the parsers
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 24.7K bytes - Viewed (0) -
cmd/kube-scheduler/app/options/options.go
logger := klog.FromContext(ctx) if o.SecureServing != nil { if err := o.SecureServing.MaybeDefaultWithSelfSignedCerts("localhost", nil, []net.IP{netutils.ParseIPSloppy("127.0.0.1")}); err != nil { return nil, fmt.Errorf("error creating self-signed certificates: %v", err) } } c := &schedulerappconfig.Config{} if err := o.ApplyTo(logger, c); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 17 17:06:29 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/apis/networking/validation/validation.go
for _, msg := range validation.IsDNS1123Subdomain(ingress.Hostname) { allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, msg)) } if isIP := (netutils.ParseIPSloppy(ingress.Hostname) != nil); isIP { allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, "must be a DNS name, not an IP address")) } } } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 07 14:48:01 UTC 2024 - 31.5K bytes - Viewed (0) -
cmd/kube-controller-manager/app/options/options.go
if err := s.Validate(allControllers, disabledByDefaultControllers, controllerAliases); err != nil { return nil, err } if err := s.SecureServing.MaybeDefaultWithSelfSignedCerts("localhost", nil, []net.IP{netutils.ParseIPSloppy("127.0.0.1")}); err != nil { return nil, fmt.Errorf("error creating self-signed certificates: %v", err) } kubeconfig, err := clientcmd.BuildConfigFromFlags(s.Master, s.Generic.ClientConnection.Kubeconfig)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 13 20:41:50 UTC 2023 - 20.7K bytes - Viewed (0) -
pkg/proxy/servicechangetracker_test.go
func makeTestServiceInfo(clusterIP string, port int, protocol string, healthcheckNodePort int, svcInfoFuncs ...func(*BaseServicePortInfo)) *BaseServicePortInfo { bsvcPortInfo := &BaseServicePortInfo{ clusterIP: netutils.ParseIPSloppy(clusterIP), port: port, protocol: v1.Protocol(protocol), } if healthcheckNodePort != 0 { bsvcPortInfo.healthCheckNodePort = healthcheckNodePort } for _, svcInfoFunc := range svcInfoFuncs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.7K bytes - Viewed (0)