util

package
v0.0.0-...-d0acd22 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Workers = 5

Variables

This section is empty.

Functions

func ParallelizeSyncNode

func ParallelizeSyncNode(ctx context.Context, workers int, nodelist []*v1.Node, Do func(ctx context.Context, node *v1.Node))

func PatchNodeStatus

func PatchNodeStatus(c v1core.CoreV1Interface, nodeName types.NodeName, oldNode *v1.Node, newNode *v1.Node) (*v1.Node, []byte, error)

PatchNodeStatus patches node status.

Types

type Ops

type Ops struct {
	Op    string      `json:"op,omitempty"`
	Path  string      `json:"path"`
	Value interface{} `json:"value,omitempty"`
}

type Patch

type Patch struct {
	PatchOps []Ops
}

func (*Patch) Data

func (p *Patch) Data(obj runtime.Object) ([]byte, error)

func (Patch) Type

func (p Patch) Type() types.PatchType

Jump to

Keyboard shortcuts

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