Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for PodsForSelector (0.08 sec)

  1. istioctl/pkg/metrics/metrics.go

    	client, err := ctx.CLIClientWithRevision(metricsOpts.Revision)
    	if err != nil {
    		return fmt.Errorf("failed to create k8s client: %v", err)
    	}
    
    	pl, err := client.PodsForSelector(context.TODO(), ctx.IstioNamespace(), "app.kubernetes.io/name=prometheus")
    	if err != nil {
    		return fmt.Errorf("not able to locate Prometheus pod: %v", err)
    	}
    
    	if len(pl.Items) < 1 {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top