kubernetes

package
v0.0.0-...-9eed78a Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(opts ...Option) config.Source
Example
conf := config.New(
	config.WithSource(
		NewSource(
			Namespace("mesh"),
			LabelSelector("app=test"),
			KubeConfig(filepath.Join(homedir.HomeDir(), ".kube", "config")),
		),
	),
)
err := conf.Load()
if err != nil {
	log.Panic(err)
}
Output:

Types

type Option

type Option func(*options)

func FieldSelector

func FieldSelector(fs string) Option

func KubeConfig

func KubeConfig(cfg string) Option

func LabelSelector

func LabelSelector(ls string) Option

func Master

func Master(master string) Option

func Namespace

func Namespace(ns string) Option

Jump to

Keyboard shortcuts

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