Documentation ¶
Index ¶
- func CRDExists(restMapper meta.RESTMapper, gvr schema.GroupVersionResource) bool
- func GeneratePredicateFuncsForIngressClassFilter(name string) predicate.Funcs
- func IsDefaultIngressClass(obj client.Object) bool
- func IsIngressClassEmpty(obj client.Object) bool
- func MatchesIngressClass(obj client.Object, controllerIngressClass string, isDefault bool) bool
- func UpdateLoadBalancerIngress(ingress client.Object, newAddresses []netv1.IngressLoadBalancerIngress) (updateNeeded bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CRDExists ¶
func CRDExists(restMapper meta.RESTMapper, gvr schema.GroupVersionResource) bool
CRDExists returns false if CRD does not exist.
func GeneratePredicateFuncsForIngressClassFilter ¶
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
IsDefaultIngressClass returns whether an IngressClass is the default IngressClass.
func IsIngressClassEmpty ¶ added in v2.3.0
IsIngressClassEmpty returns true if an object has no ingress class information or false otherwise.
func MatchesIngressClass ¶ added in v2.3.0
MatchesIngressClass indicates whether or not an object belongs to a given ingress class.
func UpdateLoadBalancerIngress ¶ added in v2.8.0
func UpdateLoadBalancerIngress( ingress client.Object, newAddresses []netv1.IngressLoadBalancerIngress, ) (updateNeeded bool, err error)
UpdateLoadBalancerIngress updates any supported Ingress object with new []netv1.IngressLoadBalancerIngress in a backward-compatible fashion if needed. Update does not happen in case there are no changes detected.
Types ¶
This section is empty.