Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ValidPodsNameArgs (0.2 sec)

  1. istioctl/pkg/completion/completion.go

    	for _, pod := range podList.Items {
    		if toComplete == "" || strings.HasPrefix(pod.Name, toComplete) {
    			podsName = append(podsName, pod.Name)
    		}
    	}
    
    	return podsName, nil
    }
    
    func ValidPodsNameArgs(ctx cli.Context) func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
    	return func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. istioctl/pkg/authz/authz.go

    			}
    
    			analyzer, err := NewAnalyzer(configDump)
    			if err != nil {
    				return err
    			}
    			analyzer.Print(cmd.OutOrStdout())
    			return nil
    		},
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    	cmd.PersistentFlags().StringVarP(&configDumpFile, "file", "f", "",
    		"The json file with Envoy config dump to be checked")
    	return cmd
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. istioctl/pkg/proxystatus/proxystatus.go

    				return err
    			}
    			sw := pilot.XdsStatusWriter{
    				Writer:    c.OutOrStdout(),
    				Namespace: ctx.Namespace(),
    			}
    			return sw.PrintAll(xdsResponses)
    		},
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    
    	opts.AttachControlPlaneFlags(statusCmd)
    	centralOpts.AttachControlPlaneFlags(statusCmd)
    	statusCmd.PersistentFlags().StringVarP(&configDumpFile, "file", "f", "",
    		"Envoy config dump JSON file")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. istioctl/pkg/checkinject/checkinject.go

    				return err
    			}
    			checkResults := analyzeRunningWebhooks(whs.Items, podLabels, nsLabels)
    			return printCheckInjectorResults(cmd.OutOrStdout(), checkResults)
    		},
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    	cmd.PersistentFlags().StringVarP(&labelPairs, "labels", "l", "",
    		"Check namespace and label pairs injection status, split multiple labels by commas")
    	return cmd
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. istioctl/pkg/metrics/metrics.go

    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			return run(cmd, ctx, args)
    		},
    		DisableFlagsInUseLine: true,
    		ValidArgsFunction:     completion.ValidPodsNameArgs(ctx),
    	}
    
    	cmd.PersistentFlags().DurationVarP(&metricsDuration, "duration", "d", time.Minute, "Duration of query metrics, default value is 1m.")
    
    	return cmd
    }
    
    type workloadMetrics struct {
    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