Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 147 for onetmp (0.18 sec)

  1. pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ambient
    
    import (
    	"net/netip"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	networking "istio.io/api/networking/v1alpha3"
    	networkingclient "istio.io/client-go/pkg/apis/networking/v1alpha3"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/config/config.go

    func getLocalIP(dualStack bool) (netip.Addr, bool, error) {
    	var isIPv6 bool
    	var ipAddrs []netip.Addr
    	addrs, err := LocalIPAddrs()
    	if err != nil {
    		return netip.Addr{}, isIPv6, err
    	}
    
    	for _, a := range addrs {
    		if ipnet, ok := a.(*net.IPNet); ok {
    			ip := ipnet.IP
    			ipAddr, ok := netip.AddrFromSlice(ip)
    			if !ok {
    				continue
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/cidr.go

    // that IPv4-mapped IPv6 addresses or contain non-zero bits after the mask.
    func parseCIDR(raw string) (netip.Prefix, error) {
    	net, err := netip.ParsePrefix(raw)
    	if err != nil {
    		return netip.Prefix{}, fmt.Errorf("network address parse error during conversion from string: %v", err)
    	}
    
    	if net.Addr().Is4In6() {
    		return netip.Prefix{}, fmt.Errorf("IPv4-mapped IPv6 address %q is not allowed", raw)
    	}
    
    	return net, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:04 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/services_test.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ambient
    
    import (
    	"net/netip"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	networking "istio.io/api/networking/v1alpha3"
    	networkingclient "istio.io/client-go/pkg/apis/networking/v1alpha3"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/net/netip/inlining_test.go

    // license that can be found in the LICENSE file.
    
    package netip
    
    import (
    	"internal/testenv"
    	"os/exec"
    	"regexp"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    func TestInlining(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	t.Parallel()
    	out, err := exec.Command(
    		testenv.GoToolPath(t),
    		"build",
    		"--gcflags=-m",
    		"net/netip").CombinedOutput()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/net.go

    func addPodToHostNSIpset(pod *corev1.Pod, podIPs []netip.Addr, hostsideProbeSet *ipset.IPSet) ([]netip.Addr, error) {
    	// Add the pod UID as an ipset entry comment, so we can (more) easily find and delete
    	// all relevant entries for a pod later.
    	podUID := string(pod.ObjectMeta.UID)
    	ipProto := uint8(unix.IPPROTO_TCP)
    
    	var ipsetAddrErrs []error
    	var addedIps []netip.Addr
    
    	// For each pod IP
    	for _, pip := range podIPs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/library/ip.go

    func parseIPAddr(raw string) (netip.Addr, error) {
    	addr, err := netip.ParseAddr(raw)
    	if err != nil {
    		return netip.Addr{}, fmt.Errorf("IP Address %q parse error during conversion from string: %v", raw, err)
    	}
    
    	if addr.Zone() != "" {
    		return netip.Addr{}, fmt.Errorf("IP address %q with zone value is not allowed", raw)
    	}
    
    	if addr.Is4In6() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 11:02:34 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  8. operator/pkg/validate/validate_test.go

    `,
    			wantErrs: makeErrors([]string{`global.proxy.includeIPRanges netip.ParsePrefix(" 2.2.0.0/16"): ParseAddr(" 2.2.0.0"): unexpected character (at " 2.2.0.0")`}),
    		},
    		{
    			desc: "BadValuesIP with Space end",
    			yamlStr: `
    values:
      global:
        proxy:
          includeIPRanges: "1.1.0.0/16 ,2.2.0.0/16"
    `,
    			wantErrs: makeErrors([]string{`global.proxy.includeIPRanges netip.ParsePrefix("1.1.0.0/16 "): bad bits after slash: "16 "`}),
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 25 11:44:31 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go

    		}
    		waypointAddress := waypoint.GetAddress()
    		if waypointAddress == nil {
    			return nil
    		}
    
    		ip := waypointAddress.GetAddress()
    		netip, _ := netip.AddrFromSlice(ip)
    		netaddr := networkAddress{
    			network: waypointAddress.GetNetwork(),
    			ip:      netip.String(),
    		}
    		return append(make([]networkAddress, 1), netaddr)
    	})
    	WorkloadServices.RegisterBatch(krt.BatchedEventFilter(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 19 17:19:41 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. tools/istio-iptables/pkg/capture/run_test.go

    			iptConfigurator.Run()
    			compareToGolden(t, tt.name, ext.ExecutedAll)
    		})
    	}
    }
    
    func TestSeparateV4V6(t *testing.T) {
    	mkIPList := func(ips ...string) []netip.Prefix {
    		ret := []netip.Prefix{}
    		for _, ip := range ips {
    			ipp, err := netip.ParsePrefix(ip)
    			if err != nil {
    				panic(err.Error())
    			}
    			ret = append(ret, ipp)
    		}
    		return ret
    	}
    	cases := []struct {
    		name string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top