v0.19.0 Latest Latest

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

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




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"


This section is empty.


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.


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