kube

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cc *ClientConfig) (client kubernetes.Interface, err error)

New returns a kubernetes client. It tries first with in-cluster config, if it fails it will try with out-of-cluster config.

func NewFromConfig

func NewFromConfig(cc *ClientConfig, path string) (client kubernetes.Interface, err error)

NewFromConfig returns a new out-of-cluster kubernetes client.

func NewInCluster

func NewInCluster(cc *ClientConfig) (client kubernetes.Interface, err error)

NewInCluster returns a new in-cluster kubernetes client.

Types

type ClientConfig

type ClientConfig struct {
	QPS   float32
	Burst int
}

Jump to

Keyboard shortcuts

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