util

package
v0.0.0-...-209ba2c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffPods

func DiffPods(pods1, pods2 []*v1.Pod) (ret []*v1.Pod)

func DumpJSON

func DumpJSON(o interface{}) string

DumpJSON returns the JSON encoding

func GetPodNames

func GetPodNames(pods []*v1.Pod) sets.String

func IntAbs

func IntAbs(i int) int

func IsIntPlusAndMinus

func IsIntPlusAndMinus(i, j int) bool

func IsJSONObjectEqual

func IsJSONObjectEqual(o1, o2 interface{}) bool

IsJSONObjectEqual checks if two objects are equal after encoding json

func ValidatedLabelSelectorAsSelector

func ValidatedLabelSelectorAsSelector(ps *metav1.LabelSelector) (labels.Selector, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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