resource

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCondition

func GetCondition(cr interface{ UnstructuredContent() map[string]interface{} }, ct v1alpha1.ConditionType) (v1alpha1.Condition, error)

GetCondition returns the condition for the given ConditionType if exists, otherwise returns nil

func SetConditions

func SetConditions(cr interface{ UnstructuredContent() map[string]interface{} }, c ...v1alpha1.Condition) error

SetConditions sets the supplied conditions, replacing any existing conditions of the same type. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set.

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 ParentResource

type ParentResource interface {
	runtime.Object
	metav1.Object

	UnstructuredContent() map[string]interface{}
	GroupVersionKind() schema.GroupVersionKind
}

ParentResource should be satisfied by the stack CRD that would like to use Templating Reconciler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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