Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRestConfigE ¶
GetRestConfigE retrieves a Kubernetes REST client configuration based on the provided KubectlOptions. If the RestConfig field in options is already set, it returns that configuration directly. Otherwise, it attempts to load the configuration from the kubeconfig file path specified in options, using the provided context name. Returns the REST config or an error if loading fails.
Parameters:
- t: The testing context, used for logging and helper tracking.
- options: The KubectlOptions containing configuration and context information.
Returns:
- *rest.Config: The Kubernetes REST client configuration.
- error: An error if the configuration could not be loaded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.