cmd

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoPrintVersion

func NoPrintVersion(_ *cobra.Command, _ []string)

NoPrintVersion is used as an empty PersistentPreRun function so we don't print version info for some commands.

func PrintVersion

func PrintVersion(_ *cobra.Command, _ []string)

PrintVersion is used as a PersistentPreRun function to ensure we always print the version.

func RequireClusterAccess

func RequireClusterAccess(_ *cobra.Command, _ []string) error

RequireClusterAccess can be used as a PreRunE to ensure there's a valid kubeconfig available. It emits a user-friendly error message, since the upstream kube one is confusing. e2e.LoadConfig falls back to trying to find in-cluster service account creds, but this isn't even a way we support running origin. Give the user a nicer error telling them we expect to find a kubeconfig.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL