Documentation

Overview

Package ownerext provides a mechanism for managing dependency information across Kubernetes namespaces (because ownerReference fields cannot).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyOf

type DependencyOf struct {
	APIVersion string    `json:"apiVersion"`
	Kind       string    `json:"kind"`
	Namespace  string    `json:"namespace,omitempty"`
	Name       string    `json:"name"`
	UID        types.UID `json:"uid"`
}

type EnqueueRequestForAnnotatedDependent

type EnqueueRequestForAnnotatedDependent struct {
	Manager   *Manager
	OwnerType runtime.Object
	// contains filtered or unexported fields
}

func (*EnqueueRequestForAnnotatedDependent) Create

func (*EnqueueRequestForAnnotatedDependent) Delete

func (*EnqueueRequestForAnnotatedDependent) Generic

func (*EnqueueRequestForAnnotatedDependent) InjectScheme

func (*EnqueueRequestForAnnotatedDependent) Update

type Manager

type Manager struct {
	Annotation string
}

func NewManager

func NewManager(annotation string) *Manager

func (*Manager) GetDependencyOf

func (m *Manager) GetDependencyOf(target metav1.Object) (DependencyOf, bool, error)

func (*Manager) IsDependencyOf

func (m *Manager) IsDependencyOf(target metav1.Object, owner lifecycle.TypedObject) (bool, error)

func (*Manager) NewEnqueueRequestForAnnotatedDependencyOf

func (m *Manager) NewEnqueueRequestForAnnotatedDependencyOf(ownerType runtime.Object) *EnqueueRequestForAnnotatedDependent

func (*Manager) SetDependencyOf

func (m *Manager) SetDependencyOf(target metav1.Object, owner lifecycle.TypedObject) error