kube

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminClientset

func AdminClientset(ctx context.Context, cfg *config.Config) (*kubernetes.Clientset, error)

AdminClientset returns a client-go clientset constructed from the AKS cluster admin kubeconfig fetched via the Azure management plane.

func InvalidateKubeletClientset

func InvalidateKubeletClientset()

InvalidateKubeletClientset clears the cached kubelet clientset.

This is useful if the kubelet kubeconfig on disk has rotated (cert renewal, bootstrap regeneration, etc.) and callers want subsequent operations to pick up the new credentials.

It is safe to call concurrently.

func KubeletClientset

func KubeletClientset() (*kubernetes.Clientset, error)

KubeletClientset returns a cached client-go clientset constructed from the local kubelet kubeconfig (config.KubeletKubeconfigPath).

This is safe to share across status collection and drift remediation within the same agent process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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