controllers

package
v1.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ReasonConflict is the reason used in conditions and events that indicate that a conflict was found while updating a CSQLP instance.
	ReasonConflict = "Conflict"
	// ReasonInstanceCreated is the reason used in conditions and events that indicate that a CSQLP instance has been created.
	ReasonInstanceCreated = "InstanceCreated"
	// ReasonInstanceNotReady is the reason used in conditions and events that indicate that a CSQLP instance is not ready.
	ReasonInstanceNotReady = "InstanceNotReady"
	// v is the reason used in conditions and events that indicate that a CSQLP instance is ready.
	ReasonInstanceReady = "InstanceReady"
	// ReasonInstanceUpdated is the reason used in conditions and events that indicate that a CSQLP instance has been updated.
	ReasonInstanceUpdated = "InstanceUpdated"
	// ReasonInstanceUpToDate is the reason used in conditions and events that indicate that a CSQLP instance is up-to-date.
	ReasonInstanceUpToDate = "InstanceUpToDate"
	// ReasonInvalidSpec is the reason used in conditions and events that indicate that an invalid specification was provided for a CSQLP instance.
	ReasonInvalidSpec = "InvalidSpec"
	// ReasonNameUnavailable is the reason used in conditions and events that indicate that the chosen name for a CSQLP instance is unavailable.
	ReasonNameUnavailable = "NameUnavailable"
	// ReasonOperationInProgress is the reason used in conditions and events that indicate that an operation is still in progress for a CSQLP instance.
	ReasonOperationInProgress = "OperationInProgress"
	// ReasonUnexpectedError is the reason used in conditions and events that indicate that an unexpected error occurred while managing a CSQLP instance.
	ReasonUnexpectedError = "UnexpectedError"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// Run instructs the workers to start processing items from the work queue.
	Run(ctx context.Context) error
}

Controller represents a controller that handles Kubernetes resources.

type PostgresqlInstanceController

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

PostgresqlInstanceController is the controller for PostgresqlInstance resources.

func NewPostgresqlInstanceController

func NewPostgresqlInstanceController(config configuration.Configuration, kubeClient kubernetes.Interface, selfClient v1alpha1client.Interface, er record.EventRecorder, postgresqlInstanceInformer v1alpha1informers.PostgresqlInstanceInformer, cloudsqlClient *cloudsqladmin.Service) *PostgresqlInstanceController

NewPostgresqlInstance Controller creates a new instance of the controller for PostgresqlInstance resources.

func (PostgresqlInstanceController) Run

func (c PostgresqlInstanceController) Run(ctx context.Context) error

Run starts the controller, blocking until the specified context is canceled.

Jump to

Keyboard shortcuts

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