clientutil

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// FilePathKubeletConfig contains the kubelet.conf file path
	FilePathKubeletConfig = "/etc/kubernetes/kubelet.conf"
)
View Source
const (
	// LabelRole contains the key for the role label
	LabelRole = "node-role.kubernetes.io"
)
View Source
const (
	// RoleWorker contains the worker role
	RoleWorker = "worker"
)

Variables

This section is empty.

Functions

func New

func New() (client.Client, error)

New returns a controller-runtime client.

func NewDiscoveryClient added in v0.4.0

func NewDiscoveryClient() (*discovery.DiscoveryClient, error)

func NewK8s

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

NewK8s returns a kubernetes clientset

func NewK8sExt

func NewK8sExt() (*apiextension.Clientset, error)

func NewTopologyClient

func NewTopologyClient() (*topologyclientset.Clientset, error)

Types

type OCPClientSet

type OCPClientSet struct {
	ConfigV1 *configv1.ConfigV1Client
}

func NewOCPClientSet

func NewOCPClientSet() (*OCPClientSet, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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