kube

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	Kube    kubernetes.Interface
	Dynamic dynamic.Interface
}

Clients bundles the kube clientsets we need: typed for core/networking and dynamic for arbitrary CRDs (Cilium NetworkPolicies, etc.).

func NewClient

func NewClient(flags *genericclioptions.ConfigFlags) (*Clients, string, error)

NewClient builds the clients from kubectl-style config flags (honours --kubeconfig, --context, --namespace, etc.). The second return is the effective namespace from the user's context.

Jump to

Keyboard shortcuts

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