servicebinding

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BindingReady indicates that the overall sbr succeeded
	BindingReady conditionsv1.ConditionType = "Ready"
	// CollectionReady indicates readiness for collection and persistance of intermediate manifests
	CollectionReady conditionsv1.ConditionType = "CollectionReady"
	// InjectionReady indicates readiness to change application manifests to use those intermediate manifests
	// If status is true, it indicates that the binding succeeded
	InjectionReady conditionsv1.ConditionType = "InjectionReady"
	// EmptyServiceSelectorsReason is used when the ServiceBinding has empty
	// services.
	EmptyServiceSelectorsReason = "EmptyServiceSelectors"
	// EmptyApplicationReason is used when the ServiceBinding has empty
	// application.
	EmptyApplicationReason = "EmptyApplication"
	// ApplicationNotFoundReason is used when the application is not found.
	ApplicationNotFoundReason = "ApplicationNotFound"
	// ServiceNotFoundReason is used when the service is not found.
	ServiceNotFoundReason = "ServiceNotFound"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new ServiceBinding Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func NewCreateWatchEventHandler

func NewCreateWatchEventHandler(controller *sbrController) handler.EventHandler

NewCreateWatchEventHandler creates a new instance of handler.EventHandler interface with CSVToWatcherMapper as map-func.

func NewRetriever

func NewRetriever(
	client dynamic.Interface,
) *retriever

NewRetriever instantiate a new retriever instance.

func NewSBRController

func NewSBRController(
	mgr manager.Manager,
	options controller.Options,
	client dynamic.Interface,
) (*sbrController, error)

NewSBRController creates a new SBRController instance. It can return error on bootstrapping a new dynamic client.

Types

type ResourceWatcher

type ResourceWatcher interface {
	AddWatchForGVR(schema.GroupVersionResource) error
	AddWatchForGVK(schema.GroupVersionKind) error
}

ResourceWatcher add watching for GroupVersionKind/GroupVersionResource

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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