Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for calls (0.2 sec)

  1. cni/pkg/nodeagent/informers_test.go

    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    	// We are expecting at most 1 calls to the mock, wait for them
    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    	fs := &fakeServer{testWG: wg}
    
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		util.GetPodIPsIfPresent(pod),
    		"",
    	).Return(nil)
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. common-protos/k8s.io/api/storage/v1/generated.proto

      // being periodically called to reflect any possible change in the mounted
      // volume. This field defaults to false.
      //
      // Note: After a successful initial NodePublishVolume call, subsequent calls
      // to NodePublishVolume should only update the contents of the volume. New
      // mount points will not be seen by a running container.
      //
      // +optional
      optional bool requiresRepublish = 7;
    
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  3. common/scripts/tracing.sh

      fi
    
      # Disable execution tracing to avoid noise
      { [[ $- = *x* ]] && was_execution_trace=1 || was_execution_trace=0; } 2>/dev/null
      { set +x; } 2>/dev/null
      # Throughout, "local" usage is critical to avoid nested calls overwriting things
      local start
      start="$(date -u +%s.%N)"
      # First, get a trace and span ID. We need to get one now so we can propagate it to the child
      # Get trace ID from TRACEPARENT, if present
      local tid
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jul 28 15:25:47 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/cni-watcher_test.go

    		},
    		Status: corev1.PodStatus{
    			PodIP: fakePodIP,
    		},
    	}
    	ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "funkyns"}}
    
    	client := kube.NewFakeClient(ns, pod)
    
    	// We are expecting at most 1 calls to the mock, wait for them
    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    	fs := &fakeServer{testWG: wg}
    
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		util.GetPodIPsIfPresent(pod),
    		valid.Netns,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Feb 02 08:18:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/net_test.go

    	podIP := netip.MustParseAddr("99.9.9.9")
    	podIPs := []netip.Addr{podIP}
    
    	expectPodAddedToIPSet(fixture.ipsetDeps, podMeta)
    	err := netServer.AddPodToMesh(ctx, &corev1.Pod{ObjectMeta: podMeta}, podIPs, "faksens")
    	// no calls to ztunnel if iptables failed
    	assert.Equal(t, ztunnelServer.addedPods.Load(), 0)
    
    	// error is not partial error
    	if errors.Is(err, ErrPartialAdd) {
    		t.Fatal("expected not a partial error")
    	}
    }
    
    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)
  6. cni/pkg/iptables/iptables.go

    		iptableslog.UndefinedCommand, ChainInpodOutput, iptablesconstants.NAT,
    		"-p", "tcp",
    		"-m", "mark",
    		"--mark", inpodTproxyMark,
    		"-j", "ACCEPT",
    	)
    
    	// Do not redirect app calls to back itself via Ztunnel when using the endpoint address
    	// e.g. appN => appN by lo
    	iptablesBuilder.AppendVersionedRule("127.0.0.1/32", "::1/128",
    		iptableslog.UndefinedCommand, ChainInpodOutput, iptablesconstants.NAT,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/core/v1/generated.proto

      // Defaults to true.
      // +optional
      optional bool stdout = 2;
    
      // Stderr if true indicates that stderr is to be redirected for the attach call.
      // Defaults to true.
      // +optional
      optional bool stderr = 3;
    
      // TTY if true indicates that a tty will be allocated for the attach call.
      // This is passed through the container runtime so the tty
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 255.8K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/server_test.go

    			},
    		},
    	}
    }
    
    type fakeServer struct {
    	mock.Mock
    	testWG *WaitGroup // optional waitgroup, if code under test makes a number of async calls to fakeServer
    }
    
    func (f *fakeServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
    	if f.testWG != nil {
    		defer f.testWG.Done()
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  9. istioctl/pkg/clioptions/central.go

    	// XDSSAN is the expected Subject Alternative Name of the XDS server
    	XDSSAN string
    
    	// Plaintext forces plain text communication (for talking to port 15010)
    	Plaintext bool
    
    	// GCP project number or ID to use for XDS calls, if any.
    	GCPProject string
    
    	// Istiod address. For MCP may be different than Xds.
    	IstiodAddr string
    }
    
    // AttachControlPlaneFlags attaches control-plane flags to a Cobra command.
    // (Currently just --endpoint)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jun 06 03:39:27 GMT 2022
    - 3.2K bytes
    - Viewed (0)
  10. istioctl/pkg/metrics/metrics_test.go

    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/util/testutil"
    )
    
    // mockPromAPI lets us mock calls to Prometheus API
    type mockPromAPI struct {
    	cannedResponse map[string]prometheus_model.Value
    }
    
    func TestMetricsNoPrometheus(t *testing.T) {
    	cases := []testutil.TestCase{
    		{ // case 0
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
Back to top