resource

package
v0.0.0-...-30d0c54 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const KeepDefaultAnnotationsKey = "resourcepacks.crossplane.io/keep-defaulting-annotations"
View Source
const KeepDefaultAnnotationsTrueValue = "true"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChildResource

type ChildResource interface {
	runtime.Object
	metav1.Object
}

ChildResource is satisfied by all Kubernetes objects that the stack may want to render and deploy.

type ChildResourcePatcher

type ChildResourcePatcher interface {
	Patch(ParentResource, []ChildResource) ([]ChildResource, error)
}

ChildResourcePatcher operates on the resources rendered by the templating engine.

type ChildResourcePatcherChain

type ChildResourcePatcherChain []ChildResourcePatcher

ChildResourcePatcherChain makes it easier to provide a list of ChildResourcePatcher to be called in order.

func (ChildResourcePatcherChain) Patch

type ChildResourcePatcherFunc

type ChildResourcePatcherFunc func(ParentResource, []ChildResource) ([]ChildResource, error)

ChildResourcePatcherFunc makes it easier to provide only a function as ChildResourcePatcher

func (ChildResourcePatcherFunc) Patch

type DefaultingAnnotationRemover

type DefaultingAnnotationRemover struct{}

DefaultingAnnotationRemover removes the defaulting annotation on the resources if not explicitly specified otherwise.

func NewDefaultingAnnotationRemover

func NewDefaultingAnnotationRemover() DefaultingAnnotationRemover

NewDefaultingAnnotationRemover returns a new DefaultingAnnotationRemover

func (DefaultingAnnotationRemover) Patch

type OwnerReferenceAdder

type OwnerReferenceAdder struct{}

OwnerReferenceAdder adds owner reference of ParentResource to all ChildResources except the Providers since their deletion should be delayed until all resources refer to them are deleted.

func NewOwnerReferenceAdder

func NewOwnerReferenceAdder() OwnerReferenceAdder

NewOwnerReferenceAdder returns a new *OwnerReferenceAdder

func (OwnerReferenceAdder) Patch

type ParentResource

type ParentResource interface {
	runtime.Object
	metav1.Object

	resource.Conditioned
}

ParentResource should be satisfied by the stack CRD that would like to use generic Resource Pack Reconciler.

type TemplatingEngine

type TemplatingEngine interface {
	Run(ParentResource) ([]ChildResource, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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