monitorednamespace

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 1 module, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package monitorednamespace returns a predicate to filter for resources with the right monitored label, it enables one operator to act on multiple, labeled namespace

Index

Constants

This section is empty.

Variables

View Source
var (
	// LabelNamespace key for label on a namespace to indicate that an operator is monitoring it.
	// Can be used as an ID, to keep operators in a cluster from intefering with each other.
	LabelNamespace = fmt.Sprintf("%s/monitored", names.GroupName)
)

Functions

func NewNSPredicate

func NewNSPredicate(ctx context.Context, client client.Client, id string) predicate.Funcs

NewNSPredicate returns a controller predicate to filter for namespaces with a label

Types

This section is empty.

Jump to

Keyboard shortcuts

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