- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 183 for cobra (0.05 sec)
-
istioctl/pkg/workload/workload.go
} func groupCommand(ctx cli.Context) *cobra.Command { groupCmd := &cobra.Command{ Use: "group", Short: "Commands dealing with WorkloadGroup resources", Example: " istioctl x workload group create --name foo --namespace bar --labels app=foobar", } groupCmd.AddCommand(createCommand(ctx)) return groupCmd } func entryCommand(ctx cli.Context) *cobra.Command { entryCmd := &cobra.Command{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 25.5K bytes - Viewed (0) -
istioctl/pkg/metrics/metrics.go
reqTot = "istio_requests_total" reqDur = "istio_request_duration_milliseconds" ) func Cmd(ctx cli.Context) *cobra.Command { cmd := &cobra.Command{ Use: "metrics <workload name>...", Short: "Prints the metrics for the specified workload(s) when running in Kubernetes.", Long: `
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 8.4K bytes - Viewed (0) -
istioctl/pkg/clioptions/central.go
GCPProject string // Istiod address. For MCP may be different than Xds. IstiodAddr string } // AttachControlPlaneFlags attaches control-plane flags to a Cobra command. // (Currently just --endpoint) func (o *CentralControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command) { cmd.PersistentFlags().StringVar(&o.Xds, "xds-address", viper.GetString("XDS-ADDRESS"), "XDS Endpoint")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 06 03:39:27 UTC 2022 - 3.2K bytes - Viewed (0) -
cni/pkg/cmd/root.go
o := ctrlz.DefaultOptions() o.EnablePprof = true return o }() ) var rootCmd = &cobra.Command{ Use: "install-cni", Short: "Install and configure Istio CNI plugin on a node, detect and repair pod which is broken by race condition.", SilenceUsage: true, PreRunE: func(c *cobra.Command, args []string) error { if err := istiolog.Configure(logOptions); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:35 UTC 2024 - 13K bytes - Viewed (0) -
cluster/images/etcd/migrate/migrate.go
limitations under the License. */ package main import ( "fmt" "path/filepath" "github.com/spf13/cobra" "k8s.io/klog/v2" ) const ( versionFilename = "version.txt" ) var ( migrateCmd = &cobra.Command{ Short: "Upgrade/downgrade etcd data across multiple versions", Long: `Upgrade or downgrade etcd data across multiple versions to the target version
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 16 23:10:54 UTC 2020 - 3.8K bytes - Viewed (0) -
hack/conformance/check_conformance_test_requirements.go
if err != nil { return err } } return nil } func newCommand() *cobra.Command { cmd := &cobra.Command{ Use: "check_conformance_test_requirements [e2e-test-path]", Short: "Check conformance test code follows the requirements", Run: func(cmd *cobra.Command, args []string) { if len(args) != 1 { cmd.Help() os.Exit(1) } e2eRootPath := args[0]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 29 06:30:57 UTC 2023 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/filename_flags.go
See the License for the specific language governing permissions and limitations under the License. */ package genericclioptions import ( "strings" "github.com/spf13/cobra" "github.com/spf13/pflag" "k8s.io/cli-runtime/pkg/resource" ) // FileNameFlags are flags for processing files. // Usage of this struct by itself is discouraged.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 13 10:28:09 UTC 2021 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/name_flags.go
default: return nil, NoCompatiblePrinterError{OutputFormat: &outputFormat, AllowedFormats: f.AllowedFormats()} } } // AddFlags receives a *cobra.Command reference and binds // flags related to name printing to it func (f *NamePrintFlags) AddFlags(c *cobra.Command) {} // NewNamePrintFlags returns flags associated with // --name printing, with default values set. func NewNamePrintFlags(operation string) *NamePrintFlags {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 05 12:19:00 UTC 2021 - 2.5K bytes - Viewed (0) -
operator/cmd/mesh/uninstall.go
cmd.PersistentFlags().BoolVarP(&args.verbose, "verbose", "v", false, "Verbose output.") } // UninstallCmd command uninstalls Istio from a cluster func UninstallCmd(ctx cli.Context) *cobra.Command { rootArgs := &RootArgs{} uiArgs := &uninstallArgs{} uicmd := &cobra.Command{ Use: "uninstall", Short: "Uninstall Istio from a cluster", Long: "The uninstall command uninstalls Istio from a cluster",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 01:18:49 UTC 2024 - 10.4K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/util/cmdutil.go
// Without this callback, if a user runs just the command without a subcommand, // or with an invalid subcommand, cobra will print usage information, but still exit cleanly. func SubCmdRun() func(c *cobra.Command, args []string) { return func(c *cobra.Command, args []string) { if len(args) > 0 { kubeadmutil.CheckErr(usageErrorf(c, "invalid subcommand %q", strings.Join(args, " "))) } c.Help()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.3K bytes - Viewed (0)