kubeclient

package
v0.0.0-...-96e757f Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SystemConfig

func SystemConfig() (*rest.Config, error)

Return auto-detected system/user Kubernetes configuration, either from in-cluster autoconfiguration or a $KUBECONFIG file.

Types

type Interface

type Interface interface {
	// Return a Kubernetes client.
	Kubernetes() kubernetes.Interface

	// Return an object that knows how to do CRUD on the specified unstructured resource.
	ResourceInterface(resource *unstructured.Unstructured) (dynamic.ResourceInterface, error)

	// Return a new client of the same type, but using the team's credentials
	Impersonate(team string) (Interface, error)
}

Provide a Kubernetes client that knows how to deal with unstructured resources and team impersonation.

func DefaultClient

func DefaultClient() (Interface, error)

func New

func New(config *rest.Config) (Interface, error)

Jump to

Keyboard shortcuts

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