handler

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NamespacedNameAnnotation - annotation that will be used to get the primary resource namespaced name.
	NamespacedNameAnnotation = "operator-sdk/primary-resource"
	// TypeAnnotation - annotation that will be used to verify that the primary resource is the primary resource to use.
	TypeAnnotation = "operator-sdk/primary-resource-type"
)

Variables

This section is empty.

Functions

func SetOwnerAnnotation added in v0.18.0

func SetOwnerAnnotation(u *unstructured.Unstructured, owner *unstructured.Unstructured)

SetOwnerAnnotation sets annotations for dependent resources that needs to be watched by namespaced Owners.

Types

type EnqueueRequestForAnnotation

type EnqueueRequestForAnnotation struct {
	Type string
}

EnqueueRequestForAnnotation enqueues Requests based on the presence of an annotation that contains the namespaced name of the primary resource.

The primary usecase for this, is to have a controller enqueue requests for the following scenarios 1. namespaced primary object and dependent cluster scoped resource 2. cluster scoped primary object. 3. namespaced primary object and dependent namespaced scoped but in a different namespace object.

func (*EnqueueRequestForAnnotation) Create

Create implements EventHandler

func (*EnqueueRequestForAnnotation) Delete

Delete implements EventHandler

func (*EnqueueRequestForAnnotation) Generic

Generic implements EventHandler

func (*EnqueueRequestForAnnotation) Update

Update implements EventHandler

Jump to

Keyboard shortcuts

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