kubernetes

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthFields

func AuthFields() []*service.ConfigField

AuthFields returns the config fields for Kubernetes authentication. These fields are shared across all Kubernetes components.

func CommonFields

func CommonFields() []*service.ConfigField

CommonFields returns config fields shared across all Kubernetes inputs.

func InClusterNamespace

func InClusterNamespace() string

InClusterNamespace returns the namespace this pod is running in, or "default" if not running in a cluster.

func LabelSelectorFromMap

func LabelSelectorFromMap(labels map[string]string) string

LabelSelectorFromMap converts a map of key-value pairs to a Kubernetes label selector string (e.g., "app=myapp,env=prod").

Types

type ClientSet

type ClientSet struct {
	Typed     kubernetes.Interface
	Dynamic   dynamic.Interface
	Discovery discovery.DiscoveryInterface
	Mapper    meta.RESTMapper
	Config    *rest.Config
}

ClientSet contains the typed, dynamic, and discovery Kubernetes clients.

func GetClientSet

func GetClientSet(ctx context.Context, conf *service.ParsedConfig, fs *service.FS) (*ClientSet, error)

GetClientSet creates Kubernetes clients from parsed configuration.

Jump to

Keyboard shortcuts

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