client

package
v1.27.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientGenerator

func NewClientGenerator(cfg *types.Config) types.ClientGenerator

Types

type SingletonClientGenerator

type SingletonClientGenerator struct {
	KubeConfig       string
	APIServerURL     string
	RequestTimeout   time.Duration
	DeletionTimeout  time.Duration
	MaxGracePeriod   time.Duration
	NodeReadyTimeout time.Duration
	// contains filtered or unexported fields
}

SingletonClientGenerator provides clients

func (*SingletonClientGenerator) AnnoteNode

func (p *SingletonClientGenerator) AnnoteNode(nodeName string, annotations map[string]string) error

AnnoteNode set annotation on node

func (*SingletonClientGenerator) ApiExtentionClient

ApiExtentionClient generates an api extension client if it was not created before

func (*SingletonClientGenerator) CordonNode

func (p *SingletonClientGenerator) CordonNode(nodeName string) error

func (*SingletonClientGenerator) DeleteNode

func (p *SingletonClientGenerator) DeleteNode(nodeName string) error

func (*SingletonClientGenerator) DrainNode

func (p *SingletonClientGenerator) DrainNode(nodeName string, ignoreDaemonSet, deleteLocalData bool) error

func (*SingletonClientGenerator) GetNode

func (p *SingletonClientGenerator) GetNode(nodeName string) (*apiv1.Node, error)

func (*SingletonClientGenerator) KubeClient

KubeClient generates a kube client if it was not created before

func (*SingletonClientGenerator) LabelNode

func (p *SingletonClientGenerator) LabelNode(nodeName string, labels map[string]string) error

LabelNode set label on node

func (*SingletonClientGenerator) MarkDrainNode

func (p *SingletonClientGenerator) MarkDrainNode(nodeName string) error

func (*SingletonClientGenerator) NodeList

func (p *SingletonClientGenerator) NodeList() (*apiv1.NodeList, error)

NodeList return node list from cluster

func (*SingletonClientGenerator) NodeManagerClient

NodeManagerClient generates node manager client if it was not created before

func (*SingletonClientGenerator) PodList

func (p *SingletonClientGenerator) PodList(nodeName string, podFilter types.PodFilterFunc) ([]apiv1.Pod, error)

PodList return list of pods hosted on named node

func (*SingletonClientGenerator) SetProviderID

func (p *SingletonClientGenerator) SetProviderID(nodeName, providerID string) error

func (*SingletonClientGenerator) TaintNode

func (p *SingletonClientGenerator) TaintNode(nodeName string, taints ...apiv1.Taint) error

TaintNode set annotation on node

func (*SingletonClientGenerator) UncordonNode

func (p *SingletonClientGenerator) UncordonNode(nodeName string) error

func (*SingletonClientGenerator) WaitNodeToBeReady

func (p *SingletonClientGenerator) WaitNodeToBeReady(nodeName string) error

Jump to

Keyboard shortcuts

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