Documentation ¶
Overview ¶
Package util provides utilities for feature and feature gate functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NamespacesMatchingSelector ¶
func NamespacesMatchingSelector(ctx context.Context, c client.Client, selector *metav1.LabelSelector) ([]string, error)
NamespacesMatchingSelector returns the list of namespaces after applying the NamespaceSelector filter. Note that a nil selector selects nothing, while an empty selector selects everything. Callers using this function in feature gates context should be sending a pointer to an empty selector instead of nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.