Documentation
¶
Overview ¶
Package testutils provides test utility functions for the CLI package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestKubeconfig ¶
CreateTestKubeconfig creates a temporary kubeconfig file for testing
func ReadKubeconfigExtension ¶
func ReadKubeconfigExtension(t *testing.T, kubeconfigPath, extensionName string, target interface{}) (bool, error)
ReadKubeconfigExtension reads and unmarshals a kubeconfig extension into the provided target The target parameter should be a pointer to the struct you want to unmarshal into Returns true if the extension was found and unmarshaled successfully, false if not found
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.