controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSpec = fmt.Errorf("custom resource spec is invalid")
	// ErrRequeue describes error while requeuing
	ErrRequeue = fmt.Errorf("(transitory error) Requeue-ing resource to try again")
)

Functions

This section is empty.

Types

type ApplicationGroupReconciler

type ApplicationGroupReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme

	// Cfg is the controller configuration that gives access to the helm registry configuration (and more as we add options to configure the controller)
	Cfg    *configurer.Controller
	Engine workflow.Engine

	// WorkflowNS is the namespace to which (generated) Argo Workflow object is deployed
	WorkflowNS string

	// Recorder generates kubernetes events
	Recorder record.EventRecorder
}

ApplicationGroupReconciler reconciles a ApplicationGroup object

func (*ApplicationGroupReconciler) Reconcile

func (r *ApplicationGroupReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ApplicationGroupReconciler) SetupWithManager

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

type ApplicationReconciler

type ApplicationReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme

	// Cfg is the controller configuration that gives access to the helm registry configuration (and more as we add options to configure the controller)
	Cfg *configurer.Controller

	// RegistryClient interacts with the helm registries to pull and push charts
	RegistryClient *registry.Client

	// StagingRepoName is the nickname for the repository used for staging artifacts before being deployed using the HelmRelease object
	StagingRepoName string

	// TargetDir to stage the charts before pushing
	TargetDir string

	// Recorder generates kubernetes events
	Recorder record.EventRecorder
}

ApplicationReconciler reconciles a Application object

func (*ApplicationReconciler) Reconcile

func (r *ApplicationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ApplicationReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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