- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for CLIClientWithRevision (0.12 sec)
-
istioctl/pkg/cli/context.go
"istio.io/istio/pkg/slices" ) type Context interface { // CLIClient returns a client for the default revision CLIClient() (kube.CLIClient, error) // CLIClientWithRevision returns a client for the given revision CLIClientWithRevision(rev string) (kube.CLIClient, error) // InferPodInfoFromTypedResource returns the pod name and namespace for the given typed resource
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 23 19:31:32 UTC 2024 - 8.9K bytes - Viewed (0) -
istioctl/pkg/dashboard/dashboard.go
Example: ` istioctl dashboard prometheus # with short syntax istioctl dash prometheus istioctl d prometheus`, RunE: func(cmd *cobra.Command, args []string) error { client, err := ctx.CLIClientWithRevision(opts.Revision) if err != nil { return fmt.Errorf("failed to create k8s client: %v", err) } name, namespace, err := inferPodMeta(ctx, client, "app.kubernetes.io/name=prometheus") if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Apr 15 01:29:35 UTC 2024 - 20.5K bytes - Viewed (0) -
istioctl/pkg/version/version.go
} } }) return versionCmd } func getRemoteInfo(ctx cli.Context, opts clioptions.ControlPlaneOptions) (*istioVersion.MeshInfo, error) { kubeClient, err := ctx.CLIClientWithRevision(opts.Revision) if err != nil { return nil, err } return kubeClient.GetIstioVersions(context.TODO(), ctx.IstioNamespace()) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 29 21:11:35 UTC 2024 - 8.3K bytes - Viewed (0) -
istioctl/pkg/internaldebug/internal-debug_test.go
ctx := cli.NewFakeContext(&cli.NewFakeContextOption{ IstioNamespace: "istio-system", }) if !c.noIstiod { client, err := ctx.CLIClientWithRevision(c.revision) assert.NoError(t, err) _, err = client.Kube().CoreV1().Pods("istio-system").Create(context.TODO(), &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "istiod-test",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Mar 15 08:28:50 UTC 2024 - 4.5K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/clusters.go
cmd := &cobra.Command{ Use: "remote-clusters", Short: "Lists the remote clusters each istiod instance is connected to.", RunE: func(cmd *cobra.Command, args []string) error { kubeClient, err := ctx.CLIClientWithRevision(opts.Revision) if err != nil { return err } res, err := kubeClient.AllDiscoveryDo(context.Background(), ctx.IstioNamespace(), "debug/clusterz") if err != nil { return err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 2.3K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus_test.go
ctx := cli.NewFakeContext(&cli.NewFakeContextOption{ IstioNamespace: "istio-system", }) if !c.noIstiod { client, err := ctx.CLIClientWithRevision(c.revision) assert.NoError(t, err) _, err = client.Kube().CoreV1().Pods("istio-system").Create(context.TODO(), &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "istiod-test",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Mar 15 08:28:50 UTC 2024 - 5.5K bytes - Viewed (0) -
istioctl/pkg/internaldebug/internal-debug.go
istioctl x internal-debug syncz --xds-label istio.io/rev=default `, RunE: func(c *cobra.Command, args []string) error { kubeClient, err := ctx.CLIClientWithRevision(opts.Revision) if err != nil { return err } if len(args) == 0 { return util.CommandParseError{ Err: fmt.Errorf("debug type is required"), } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jul 12 11:30:24 UTC 2024 - 6.7K bytes - Viewed (0) -
istioctl/pkg/proxystatus/proxystatus.go
istioctl ps --xds-label istio.io/rev=default `, Aliases: []string{"ps"}, RunE: func(c *cobra.Command, args []string) error { kubeClient, err := ctx.CLIClientWithRevision(opts.Revision) if err != nil { return err } multiXdsOpts.MessageWriter = c.OutOrStdout() if len(args) > 0 {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 6.2K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig.go
return fmt.Errorf("--stack-trace-level cannot be combined with --reset") } return nil }, RunE: func(logCmd *cobra.Command, args []string) error { client, err := ctx.CLIClientWithRevision(opts.Revision) if err != nil { return fmt.Errorf("failed to create k8s client: %v", err) } var podName, ns string if len(args) == 0 { if opts.Revision == "" {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 13.5K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list.go
Long: `List sidecar injector and sidecar versions`, Example: ` istioctl experimental injector list`, RunE: func(cmd *cobra.Command, args []string) error { client, err := ctx.CLIClientWithRevision(opts.Revision) if err != nil { return fmt.Errorf("failed to create k8s client: %v", err) } nsList, err := getNamespaces(context.Background(), client, ctx.IstioNamespace()) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Oct 18 11:39:52 UTC 2024 - 10.6K bytes - Viewed (0)