sort

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package sort provides utilities for sorting Kubernetes resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LessClientObject

func LessClientObject(obj1 client.Object, obj2 client.Object) bool

LessClientObject compares two client.Objects and returns true if: - the first object was created first, - the objects were created at the same time, or - the first object's name appears first in alphabetical order.

func LessObjectMeta

func LessObjectMeta(meta1 *metav1.ObjectMeta, meta2 *metav1.ObjectMeta) bool

LessObjectMeta compares two ObjectMetas according to the Gateway API conflict resolution guidelines. See https://gateway-api.sigs.k8s.io/concepts/guidelines/?h=conflict#conflicts

Types

This section is empty.

Jump to

Keyboard shortcuts

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