utils

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRestConfigE

func GetRestConfigE(t *testing.T, options *k8s.KubectlOptions) (*rest.Config, error)

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.

Jump to

Keyboard shortcuts

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