ownerext

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 15 Imported by: 3

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

Jump to

Keyboard shortcuts

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