resources

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TolerationPath = []string{"spec", "template", "spec", "tolerations"}
	TaintPath      = []string{"spec", "taints"}
	NodeGVR        = schema.GroupVersionResource{
		Resource: "nodes",
		Version:  "v1",
	}
)

Functions

func FilterTaints

func FilterTaints(objs map[ResourceReference][]v1.Taint, matchTaint v1.Taint, condition bool) map[ResourceReference][]v1.Taint

func FilterTolerations

func FilterTolerations(objs map[ResourceReference][]v1.Toleration, matchToleration v1.Toleration, condition bool) map[ResourceReference][]v1.Toleration

func ListNodeTaints

func ListNodeTaints(client dynamic.Interface) (map[ResourceReference][]v1.Taint, error)

func ListResourceTolerations

func ListResourceTolerations(client dynamic.Interface, gvr schema.GroupVersionResource, namespace string) (map[ResourceReference][]v1.Toleration, error)

func Parse

func Parse(apiVersion, kind string) schema.GroupVersionResource

Types

type ResourceReference

type ResourceReference struct {
	Namespace string
	Name      string
	Kind      string
}

Jump to

Keyboard shortcuts

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