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: 3

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