package
1.8.0
Repository: https://github.com/openkruise/kruise.git
Documentation: pkg.go.dev

# Packages

# Functions

CalculatePartitionReplicas returns absolute value of partition for workload.
CheckDuplicate finds if there are duplicated items in a list.
DiffPods returns pods in pods1 but not in pods2.
DumpJSON returns the JSON encoding.
GetPodNames returns names of the given Pods array.
IntAbs returns the abs number of the given int number.
IsContainerImageEqual indicates whether container images are equal 1.
IsImageDigest indicates whether image is digest format, for example: docker.io/busybox@sha256:a9286defaba7b3a519d585ba0e37d0b2cbee74ebfe590960b0b1d6a5e97d1e1d.
IsJSONObjectEqual checks if two objects are equal after encoding json.
IsReferenceEqual checks APIVersion, Kind, Name.
IsRestartableInitContainer returns true if the initContainer has ContainerRestartPolicyAlways.
IsSelectorLooseOverlap indicates whether selectors overlap (indicates that selector1, selector2 have same key, and there is an certain intersection) 1.
IsSelectorOverlapping indicates whether selector overlaps, the criteria: if exist one same key has different value and not overlap, then it is judged non-overlap, for examples: - a=b and a=c - a in [b,c] and a not in [b,c...] - a not in [b] and a not exist - a=b,c=d,e=f and a=x,c=d,e=f then others is overlap: - a=b and c=d.
MergePods merges two pods arrays.
parse container images, 1.
ParsePercentageAsFloat64 parses a string as a percentage and returns the value as a float64.
SlowStartBatch tries to call the provided function a total of 'count' times, starting slow to check for errors, then speeding up if calls succeed.
ValidatedLabelSelectorAsSelector is faster than native `metav1.LabelSelectorAsSelector` for the newRequirement function performs no validation.

# Constants

# Variables

GlobalCache using GVK/namespace/name as key.

# Structs

# Type aliases