controllers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatePending  = "PENDING_USER"
	StateApproved = "APPROVED"
	StateAborted  = "ABORTED"
	StateApplied  = "APPLIED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AtlasExec added in v0.5.0

AtlasExec is the interface for the Atlas SDK.

type AtlasExecFn added in v0.5.0

type AtlasExecFn func(string) (AtlasExec, error)

AtlasExecFn is a function that returns an AtlasExec with the working directory.

type AtlasMigrationReconciler added in v0.1.7

type AtlasMigrationReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

AtlasMigrationReconciler reconciles a AtlasMigration object

func NewAtlasMigrationReconciler added in v0.1.7

func NewAtlasMigrationReconciler(mgr Manager, atlas AtlasExecFn, prewarmDevDB bool) *AtlasMigrationReconciler

func (*AtlasMigrationReconciler) Reconcile added in v0.1.7

func (r *AtlasMigrationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*AtlasMigrationReconciler) SetupWithManager added in v0.1.7

func (r *AtlasMigrationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type AtlasSchemaReconciler

type AtlasSchemaReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

AtlasSchemaReconciler reconciles a AtlasSchema object

func NewAtlasSchemaReconciler added in v0.1.7

func NewAtlasSchemaReconciler(mgr Manager, atlas AtlasExecFn, prewarmDevDB bool) *AtlasSchemaReconciler

func (*AtlasSchemaReconciler) Reconcile

func (r *AtlasSchemaReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*AtlasSchemaReconciler) SetupWithManager

func (r *AtlasSchemaReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Manager added in v0.3.2

type Manager interface {
	GetClient() client.Client
	GetScheme() *runtime.Scheme
	GetEventRecorderFor(name string) record.EventRecorder
}

type ProtectedFlowError added in v0.5.0

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

func (*ProtectedFlowError) Error added in v0.5.0

func (e *ProtectedFlowError) Error() string

Error implements the error interface

func (*ProtectedFlowError) Reason added in v0.5.0

func (e *ProtectedFlowError) Reason() string

Reason returns the reason of the error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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