package
0.0.0-20250228164547-bad2d1bf3a37
Repository: https://github.com/openshift/library-go.git
Documentation: pkg.go.dev

# Functions

AnonymousClientConfigWithWrapTransport returns a copy of the given config with all user credentials (cert/key, bearer token, and username/password) and custom transports (Transport) removed.
DefaultServerName extract the hostname from the config.Host and sets it in config.ServerName the ServerName is passed to the server for SNI and is used in the client to check server certificates.
GetClientConfig returns the rest.Config for a kubeconfig file.
GetKubeConfigOrInClusterConfig loads in-cluster config if kubeConfigFile is empty or the file if not, then applies overrides.
NewPreferredHostRoundTripper a simple middleware for changing the destination host for each request to the provided one.

# Structs

ClientConnectionOverrides allows overriding values for rest.Config not held in a kubeconfig.
No description provided by the author