Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for NewSinglePodFetch (0.23 sec)

  1. pkg/test/kube/util.go

    		pods, err := a.PodsForSelector(context.TODO(), namespace, selectors...)
    		if err != nil {
    			return nil, err
    		}
    		return pods.Items, nil
    	}
    }
    
    // NewSinglePodFetch creates a new PodFetchFunction that fetches a single pod matching the given label selectors.
    func NewSinglePodFetch(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)
  2. tests/integration/pilot/cni/cniversionskew_test.go

    			if !i.Settings().EnableCNI {
    				t.Skip("CNI version skew test is only tested when CNI is enabled.")
    			}
    			for _, v := range versions {
    				installCNIOrFail(t, v)
    				podFetchFn := kube.NewSinglePodFetch(t.Clusters().Default(), i.Settings().SystemNamespace, "k8s-app=istio-cni-node")
    				// Make sure CNI pod is using image with applied version.
    				retry.UntilSuccessOrFail(t, func() error {
    					pods, err := podFetchFn()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 22:56:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. tests/integration/pilot/revisions/revision_tag_test.go

    					}
    
    					deployment.New(t).WithConfig(echo.Config{
    						Service:   "revision-tag",
    						Namespace: revTagNs,
    					}).BuildOrFail(t)
    
    					fetch := kubetest.NewSinglePodFetch(t.Clusters().Default(),
    						revTagNs.Name(),
    						fmt.Sprintf("app=%s", "revision-tag"))
    					pods, err := fetch()
    					if err != nil {
    						t.Fatalf("error fetching pods: %v", err)
    					}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. pkg/test/framework/components/opentelemetry/kube.go

    	if err != nil {
    		return nil, err
    	}
    
    	ns := istioCfg.TelemetryNamespace
    	if err := install(ctx, ns); err != nil {
    		return nil, err
    	}
    
    	f := testKube.NewSinglePodFetch(o.cluster, ns, fmt.Sprintf("app=%s", appName))
    	_, err = testKube.WaitUntilPodsAreReady(f)
    	if err != nil {
    		return nil, err
    	}
    
    	isIP := net.ParseIP(c.IngressAddr).String() != "<nil>"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 19:29:38 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. pkg/test/framework/components/prometheus/kube.go

    	}
    	for _, cls := range ctx.Clusters() {
    		scopes.Framework.Debugf("Installing Prometheus on cluster: %s", cls.Name())
    		// Find the Prometheus pod and service, and start forwarding a local port.
    		fetchFn := testKube.NewSinglePodFetch(cls, cfg.TelemetryNamespace, fmt.Sprintf("app.kubernetes.io/name=%s", appName))
    		pods, err := testKube.WaitUntilPodsAreReady(fetchFn)
    		if err != nil {
    			return nil, err
    		}
    		pod := pods[0]
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. pkg/test/framework/components/ambient/waypoint.go

    		constants.AllTraffic,
    	})
    	if err != nil {
    		return nil, err
    	}
    
    	cls := ctx.Clusters().Default()
    	// Find the Waypoint pod and service, and start forwarding a local port.
    	fetchFn := testKube.NewSinglePodFetch(cls, ns.Name(), fmt.Sprintf("%s=%s", constants.GatewayNameLabel, name))
    	pods, err := testKube.WaitUntilPodsAreReady(fetchFn)
    	if err != nil {
    		return nil, err
    	}
    	pod := pods[0]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. pkg/test/framework/components/zipkin/kube.go

    	cfg, err := istio.DefaultConfig(ctx)
    	if err != nil {
    		return nil, err
    	}
    
    	if err := installZipkin(ctx, cfg.TelemetryNamespace); err != nil {
    		return nil, err
    	}
    
    	fetchFn := testKube.NewSinglePodFetch(c.cluster, cfg.SystemNamespace, fmt.Sprintf("app=%s", appName))
    	pods, err := testKube.WaitUntilPodsAreReady(fetchFn)
    	if err != nil {
    		return nil, err
    	}
    	pod := pods[0]
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 19:29:38 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/kube.go

    }
    
    func (i *istioImpl) PodIPsFor(c cluster.Cluster, namespace string, label string) ([]corev1.PodIP, error) {
    	// Find the pod with the specified label in the specified namespace
    	fetchFn := testKube.NewSinglePodFetch(c, namespace, label)
    	pods, err := testKube.WaitUntilPodsAreReady(fetchFn)
    	if err != nil {
    		return nil, err
    	}
    
    	pod := pods[0]
    	return pod.Status.PodIPs, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. tests/integration/pilot/gateway_test.go

            istio.io/gateway-name: managed-owner
        spec:
          containers:
          - name: fake
            image: %s
    `, image)).ApplyOrFail(t)
    	cls := t.Clusters().Default()
    	fetchFn := testKube.NewSinglePodFetch(cls, apps.Namespace.Name(), "gateway.networking.k8s.io/gateway-name=managed-owner")
    	if _, err := testKube.WaitUntilPodsAreReady(fetchFn); err != nil {
    		t.Fatal(err)
    	}
    
    	t.ConfigIstio().YAML(apps.Namespace.Name(), `
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  10. tests/integration/operator/switch_cr_test.go

    	if err := checkInstallStatus(cs, revision); err != nil {
    		t.Fatalf("IstioOperator status not healthy: %v", err)
    	}
    
    	if _, err := kube2.CheckPodsAreReady(kube2.NewSinglePodFetch(cs, IstioNamespace, "app=istiod")); err != nil {
    		t.Fatalf("istiod pod is not ready: %v", err)
    	}
    
    	// get manifests by running `manifest generate`
    	generateCmd := []string{
    		"manifest", "generate",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top