taints

package
v0.0.0-...-d521712 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Taint

type Taint struct {
	// contains filtered or unexported fields
}

Taint allows to set soft and hard limitations for scheduling and executing pods on nodes.

func New

func New(client *kubernetes.Clientset, nodeID, taintName string, effect v1.TaintEffect) *Taint

New provides a new taint.

func (*Taint) Disable

func (t *Taint) Disable()

Disable removes the taint for a node. Removing a missing taint is a noop.

func (*Taint) Enable

func (t *Taint) Enable()

Enable creates the taint for a node. Creating an existing taint is a noop.

Jump to

Keyboard shortcuts

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