testutil

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNoKubeConfiguration = "invalid configuration: no configuration has been provided"
)

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(root *cobra.Command, args ...string) (output string, err error)

ExecuteCommand similar to ExecuteCommandC but does not return *cobra.Command

func ExecuteCommandC

func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, output string, err error)

ExecuteCommandC execute cobra.command and catch the output

func NewTestAdminParams

func NewTestAdminParams(objects ...runtime.Object) (*pkg.AdminParams, *k8sfake.Clientset)

NewTestAdminParams creates an AdminParams and kubernetes clientset for testing

func NewTestAdminParamsWithNetworkingObjects added in v0.27.0

func NewTestAdminParamsWithNetworkingObjects(objects ...runtime.Object) *pkg.AdminParams

func NewTestAdminWithoutKubeConfig

func NewTestAdminWithoutKubeConfig() *pkg.AdminParams

NewTestAdminWithoutKubeConfig creates an AdminParams without kube config when create kubernetes clientset

Types

This section is empty.

Jump to

Keyboard shortcuts

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