util

package
v0.11.6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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