- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for CLIClientWithRevision (0.16 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/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.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/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) -
istioctl/pkg/describe/describe.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
var out bytes.Buffer ctx := cli.NewFakeContext(&cli.NewFakeContextOption{ IstioNamespace: "istio-system", }) rootCmd := Cmd(ctx) rootCmd.SetArgs(args) client, err := ctx.CLIClientWithRevision(rev) if err != nil { return "", err } createResourceFunc(client) rootCmd.SetOut(&out) rootCmd.SetErr(&out) err = rootCmd.Execute() output := out.String() return output, err
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 20:04:20 UTC 2024 - 14.6K bytes - Viewed (0) -
istioctl/pkg/precheck/precheck.go
"check changes since the provided version") opts.AttachControlPlaneFlags(cmd) return cmd } func checkFromVersion(ctx cli.Context, revision, version string) (diag.Messages, error) { cli, err := ctx.CLIClientWithRevision(revision) if err != nil { return nil, err } major, minors, ok := strings.Cut(version, ".") if !ok { return nil, fmt.Errorf("invalid version %v, expected format like '1.0'", version) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 02:31:32 UTC 2024 - 15.3K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint.go
# Apply a waypoint to a specific namespace and wait for it to be ready istioctl waypoint apply --namespace default --wait`, RunE: func(cmd *cobra.Command, args []string) error { kubeClient, err := ctx.CLIClientWithRevision(revision) if err != nil { return fmt.Errorf("failed to create Kubernetes client: %v", err) } ns := ctx.NamespaceOrDefault(ctx.Namespace())
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 19.6K bytes - Viewed (0) -
istioctl/pkg/workload/workload.go
} if outputDir == "" { return fmt.Errorf("expecting an output directory") } return nil }, RunE: func(cmd *cobra.Command, args []string) error { kubeClient, err := ctx.CLIClientWithRevision(opts.Revision) if err != nil { return err } wg := &clientnetworking.WorkloadGroup{} if filename != "" { if err := readWorkloadGroup(filename, wg); err != nil { return err
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 25.3K bytes - Viewed (0)