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.
Click to show internal directories.
Click to hide internal directories.