Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NewPodFetch (1.34 sec)

  1. tests/integration/telemetry/policy/envoy_ratelimit_test.go

    		Apply()
    	if err != nil {
    		return
    	}
    
    	// Wait for redis and ratelimit service to be up.
    	fetchFn := kube.NewPodFetch(ctx.Clusters().Default(), ratelimitNs.Name(), "app=redis")
    	if _, err = kube.WaitUntilPodsAreReady(fetchFn); err != nil {
    		return
    	}
    	fetchFn = kube.NewPodFetch(ctx.Clusters().Default(), ratelimitNs.Name(), "app=ratelimit")
    	if _, err = kube.WaitUntilPodsAreReady(fetchFn); err != nil {
    		return
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tests/integration/pilot/gw_topology_test.go

    ---
    `).ApplyOrFail(t, apply.NoCleanup)
    			cs := t.Clusters().Default().(*kubecluster.Cluster)
    			retry.UntilSuccessOrFail(t, func() error {
    				_, err := kubetest.CheckPodsAreReady(kubetest.NewPodFetch(cs, gatewayNs.Name(), "istio=ingressgateway"))
    				return err
    			}, retry.Timeout(time.Minute*2), retry.Delay(time.Second))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. pkg/test/kube/util.go

    	ErrNoPodsFetched = fmt.Errorf("no pods fetched")
    )
    
    // PodFetchFunc fetches pods from a k8s Client.
    type PodFetchFunc func() ([]corev1.Pod, error)
    
    // NewPodFetch creates a new PodFetchFunction that fetches all pods matching the namespace and label selectors.
    func NewPodFetch(a istioKube.CLIClient, namespace string, selectors ...string) PodFetchFunc {
    	return func() ([]corev1.Pod, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. pkg/test/framework/components/registryredirector/kube.go

    		return nil, fmt.Errorf("failed to apply rendered %s, err: %v", env.RegistryRedirectorServerInstallFilePath, err)
    	}
    
    	fetchFn := testKube.NewPodFetch(ctx.Clusters().Default(), c.ns.Name(), podSelector)
    	pods, err := testKube.WaitUntilPodsAreReady(fetchFn)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 00:53:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. pkg/test/framework/components/jwt/kube.go

    		return err
    	}
    
    	// Wait for the endpoints to be ready.
    	var g multierror.Group
    	for _, c := range ctx.AllClusters() {
    		c := c
    		g.Go(func() error {
    			fetchFn := kube.NewPodFetch(c, s.ns.Name(), "app=jwt-server")
    			_, err := kube.WaitUntilPodsAreReady(fetchFn)
    			if err != nil {
    				return fmt.Errorf("jwt-server pod not ready in cluster %s: %v", c.Name(), err)
    			}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 22 23:45:43 UTC 2022
    - 4K bytes
    - Viewed (0)
  6. tests/integration/ambient/cacert_rotation_test.go

    			sa := apps.Captured[0].ServiceAccountName()
    
    			// we do not know which ztunnel instance is located on the node as the workload, so we need to check all of them initially
    			ztunnelPods, err := kubetest.NewPodFetch(t.AllClusters()[0], istioCfg.SystemNamespace, "app=ztunnel")()
    			assert.NoError(t, err)
    
    			originalWorkloadSecret, ztunnelPod, err := getWorkloadSecret(t, ztunnelPods, sa, istioCtl)
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 03:28:36 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. pkg/test/framework/components/ambient/waypoint.go

    		"waypoint",
    		"delete",
    		"--namespace",
    		ns.Name(),
    		waypoint,
    	})
    	waypointError := retry.UntilSuccess(func() error {
    		fetch := testKube.NewPodFetch(t.AllClusters()[0], ns.Name(), constants.GatewayNameLabel+"="+waypoint)
    		pods, err := testKube.CheckPodsAreReady(fetch)
    		if err != nil && !errors.Is(err, testKube.ErrNoPodsFetched) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top