utils

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRDExists

func CRDExists(client client.Client, gvr schema.GroupVersionResource) bool

CRDExists returns false if CRD does not exist

func GeneratePredicateFuncsForIngressClassFilter

func GeneratePredicateFuncsForIngressClassFilter(name string) predicate.Funcs

GeneratePredicateFuncsForIngressClassFilter builds a controller-runtime reconciliation predicate function which filters out objects which have their ingress class set to the a value other than the controller class

func IsDefaultIngressClass added in v2.3.0

func IsDefaultIngressClass(obj client.Object) bool

IsDefaultIngressClass returns whether an IngressClass is the default IngressClass

func IsIngressClassEmpty added in v2.3.0

func IsIngressClassEmpty(obj client.Object) bool

IsIngressClassEmpty returns true if an object has no ingress class information or false otherwise

func MatchesIngressClass added in v2.3.0

func MatchesIngressClass(obj client.Object, controllerIngressClass string, isDefault bool) bool

MatchesIngressClass indicates whether or not an object belongs to a given ingress class

Types

This section is empty.

Jump to

Keyboard shortcuts

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