Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 113 for true (0.14 sec)

  1. cni/pkg/plugin/plugin_test.go

    	url, serverClose := setupCNIEventClientWithMockServer(true)
    
    	cniConf := buildMockConf(true, url)
    
    	pod, ns := buildFakePodAndNSForClient()
    	ns.ObjectMeta.Labels = map[string]string{constants.DataplaneMode: constants.DataplaneModeAmbient}
    
    	testCmdAddExpectFail(t, cniConf, pod, ns)
    
    	wasCalled := serverClose()
    	// server called, but errored
    	assert.Equal(t, wasCalled, true)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. istioctl/pkg/install/k8sversion/version_test.go

    			expected: 17,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_8,
    			expected: 8,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_18,
    			expected: 18,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_19,
    			expected: 19,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_20,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 19 02:46:48 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net_test.go

    	ipProto := uint8(unix.IPPROTO_TCP)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		ipProto,
    		podUID,
    		true,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    		ipProto,
    		podUID,
    		true,
    	).Return(nil)
    
    	podIPs := []netip.Addr{netip.MustParseAddr("99.9.9.9"), netip.MustParseAddr("2.2.2.2")}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  4. cni/pkg/iptables/iptables_test.go

    		config func(cfg *Config)
    	}{
    		{
    			"default",
    			func(cfg *Config) {
    				cfg.RedirectDNS = true
    			},
    		},
    	}
    	probeSNATipv4 := netip.MustParseAddr("169.254.7.127")
    	probeSNATipv6 := netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164")
    
    	for _, tt := range cases {
    		for _, ipv6 := range []bool{false, true} {
    			t.Run(tt.name+"_"+ipstr(ipv6), func(t *testing.T) {
    				cfg := constructTestConfig()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. cni/pkg/install/kubeconfig_test.go

    	}{
    		{
    			name:            "k8s service host not set",
    			expectedFailure: true,
    		},
    		{
    			name:            "k8s service port not set",
    			expectedFailure: true,
    			k8sServiceHost:  k8sServiceHost,
    		},
    		{
    			name:           "skip TLS verify",
    			k8sServiceHost: k8sServiceHost,
    			k8sServicePort: k8sServicePort,
    			skipTLSVerify:  true,
    		},
    		{
    			name:           "TLS verify",
    			k8sServiceHost: k8sServiceHost,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 03:52:24 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/policies.go

    type PolicyFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *PolicyFilter) Verify(pol *ZtunnelPolicy) bool {
    	if wf.Namespace != "" {
    		if !strings.EqualFold(pol.Namespace, wf.Namespace) {
    			return false
    		}
    	}
    
    	return true
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. operator/cmd/mesh/operator_test.go

    				Version: "25",
    			}), args)
    			err := rootCmd.Execute()
    			assert.NoError(t, err)
    
    			readActions := map[string]bool{
    				"get":   true,
    				"list":  true,
    				"watch": true,
    			}
    
    			actions := extendedClient.Kube().(*fake.Clientset).Actions()
    			for _, action := range actions {
    				if v := readActions[action.GetVerb()]; !v {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/tag_test.go

    						},
    					},
    				},
    			},
    			webhooksAfter:    admitv1.MutatingWebhookConfigurationList{},
    			namespaces:       corev1.NamespaceList{},
    			outputMatches:    []string{},
    			skipConfirmation: true,
    			error:            "",
    		},
    		{
    			name: "TestWrongTagLabelNotRemoved",
    			tag:  "sample",
    			webhooksBefore: admitv1.MutatingWebhookConfigurationList{
    				Items: []admitv1.MutatingWebhookConfiguration{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Nov 17 22:41:06 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  9. istioctl/pkg/util/common.go

    	for {
    		_, _ = fmt.Fprintf(writer, "%s ", msg)
    		var response string
    		_, err := fmt.Scanln(&response)
    		if err != nil {
    			return false
    		}
    		switch strings.ToUpper(response) {
    		case "Y", "YES":
    			return true
    		case "N", "NO":
    			return false
    		}
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  10. istioctl/pkg/util/ambient/util.go

    	if err != nil {
    		return isZtunnel
    	}
    	if v, ok := pod.Labels["app"]; ok {
    		return v == "ztunnel"
    	}
    	return isZtunnel
    }
    
    // InAmbient returns true if a resource is in ambient data plane mode.
    func InAmbient(obj metav1.Object) bool {
    	if obj == nil {
    		return false
    	}
    	switch t := obj.(type) {
    	case *corev1.Pod:
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
Back to top