kubeutils

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromKubeMeta

func FromKubeMeta(meta metav1.ObjectMeta, copyOwnerReferences bool) *core.Metadata

func HasSelector added in v0.34.3

func HasSelector(listOpts clients.ListOpts) bool

HasSelector returns true if the ListOpts contains a selector (which may be either an equality-based selector or set-based expression selector).

func ToKubeMeta

func ToKubeMeta(meta *core.Metadata) metav1.ObjectMeta

func ToKubeMetaMaintainNamespace added in v0.10.18

func ToKubeMetaMaintainNamespace(meta *core.Metadata) metav1.ObjectMeta

func ToLabelSelector added in v0.34.3

func ToLabelSelector(listOpts clients.ListOpts) (labels.Selector, error)

ToLabelSelector converts the selector specified by the ListOpts into an apimachinery label selector. If both ExpressionSelector and Selector are specified in the opts, only ExpressionSelector is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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