environment

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SuccessSynced is used as part of the Event 'reason' when a Environment is synced
	SuccessSynced = "Synced"

	// MessageResourceSynced is the message used for an Event fired when a Environment
	// is synced successfully
	MessageResourceSynced = "Radix Environment synced successfully"
)

Variables

This section is empty.

Functions

func NewController

func NewController(client kubernetes.Interface,
	kubeutil *kube.Kube,
	radixClient radixclient.Interface,
	handler common.Handler,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	radixInformerFactory informers.SharedInformerFactory,
	waitForChildrenToSync bool,
	recorder record.EventRecorder) *common.Controller

NewController creates a new controller that handles RadixEnvironments

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler Handler for radix environments

func NewHandler

func NewHandler(
	kubeclient kubernetes.Interface,
	kubeutil *kube.Kube,
	radixclient radixclient.Interface,
	hasSynced common.HasSynced) Handler

NewHandler creates a handler for managing RadixEnvironment resources

func (*Handler) Sync

func (t *Handler) Sync(namespace, name string, eventRecorder record.EventRecorder) error

Sync is called by kubernetes after the Controller Enqueues a work-item and collects components and determines whether state must be reconciled.

Jump to

Keyboard shortcuts

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