util

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 20 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullListOptionsFieldSelector added in v1.4.0

func FullListOptionsFieldSelector(options *metainternal.ListOptions, fieldSelector fields.Selector) *metainternal.ListOptions

FullListOptionsFieldSelector fill options fieldSelector.

func InterceptCustomSelectorFromListOptions added in v1.4.0

func InterceptCustomSelectorFromListOptions(options *metainternal.ListOptions, selector, defaultValue string) (*metainternal.ListOptions, string)

InterceptCustomSelectorFromListOptions determines the query options according to the selector.

func InterceptFuzzyResourceNameFromListOptions added in v1.4.0

func InterceptFuzzyResourceNameFromListOptions(options *metainternal.ListOptions, fuzzyResourceName string) (*metainternal.ListOptions, string)

InterceptFuzzyResourceNameFromListOptions determines the query options according to the fuzzyResourceName.

func PredicateListOptions

func PredicateListOptions(ctx context.Context, options *metainternal.ListOptions) *metainternal.ListOptions

PredicateListOptions determines the query options according to the tenant attribute of the request user.

func SetupAuditConfig added in v1.3.1

func SetupAuditConfig(genericAPIServerConfig *genericapiserver.Config, auditOptions *genericapiserveroptions.AuditOptions) error

func ShouldHaveDeleteDependentsFinalizer

func ShouldHaveDeleteDependentsFinalizer(options *metav1.DeleteOptions, haveDeleteDependentsFinalizer bool) bool

ShouldHaveDeleteDependentsFinalizer is used to determine whether to delete all dependencies

func ShouldHaveOrphanFinalizer

func ShouldHaveOrphanFinalizer(options *metav1.DeleteOptions, haveOrphanFinalizer bool) bool

ShouldHaveOrphanFinalizer is used to determine whether to delete all dependencies

Types

This section is empty.

Jump to

Keyboard shortcuts

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