cmd

package
v0.0.0-...-e4a8a9b Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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