compare

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoreTimestampUpdates = cmp.Comparer(func(x, y metav1.Time) bool {
	return x == emptyTime && y == emptyTime ||
		x != emptyTime && y != emptyTime
})

IgnoreTimestampUpdates ignores timestamps when testing equality, unless one is empty and the other is not.

This is used to test R*Sync equality, because the timestamps get updated every time, even if nothing else changed.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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