controllers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 68 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KluctlDeploymentReconcilerImpl added in v0.3.0

type KluctlDeploymentReconcilerImpl struct {
	R *KluctlProjectReconciler
}

func (*KluctlDeploymentReconcilerImpl) Finalize added in v0.3.0

func (*KluctlDeploymentReconcilerImpl) NewObject added in v0.3.0

func (*KluctlDeploymentReconcilerImpl) NewObjectList added in v0.3.0

func (*KluctlDeploymentReconcilerImpl) Reconcile added in v0.3.0

type KluctlMultiDeploymentReconcilerImpl added in v0.3.0

type KluctlMultiDeploymentReconcilerImpl struct {
	R *KluctlProjectReconciler
}

func (*KluctlMultiDeploymentReconcilerImpl) Finalize added in v0.3.0

func (*KluctlMultiDeploymentReconcilerImpl) NewObject added in v0.3.0

func (*KluctlMultiDeploymentReconcilerImpl) NewObjectList added in v0.3.0

func (*KluctlMultiDeploymentReconcilerImpl) Reconcile added in v0.3.0

type KluctlProjectHolder added in v0.3.0

type KluctlProjectHolder interface {
	client.Object
	dependency.Dependent
	meta.ObjectWithConditions
	meta.ObjectWithConditionsSetter

	GetKluctlProject() *kluctlv1.KluctlProjectSpec
	GetKluctlTiming() *kluctlv1.KluctlTimingSpec
	GetKluctlStatus() *kluctlv1.KluctlProjectStatus
	GetFullStatus() any
	SetFullStatus(s any)
}

type KluctlProjectListHolder added in v0.3.0

type KluctlProjectListHolder interface {
	client.ObjectList

	GetItems() []client.Object
}

type KluctlProjectReconciler

type KluctlProjectReconciler struct {
	client.Client

	Scheme          *runtime.Scheme
	EventRecorder   kuberecorder.EventRecorder
	MetricsRecorder *metrics.Recorder
	ControllerName  string

	NoCrossNamespaceRefs  bool
	DefaultServiceAccount string

	SshPool *ssh_pool.SshPool

	Impl KluctlProjectReconcilerImpl
	// contains filtered or unexported fields
}

KluctlProjectReconciler reconciles a KluctlDeployment object

func (*KluctlProjectReconciler) Reconcile

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

func (*KluctlProjectReconciler) SetupWithManager

SetupWithManager sets up the controller with the Manager.

type KluctlProjectReconcilerImpl added in v0.3.0

type KluctlProjectReconcilerImpl interface {
	NewObject() KluctlProjectHolder
	NewObjectList() KluctlProjectListHolder
	Reconcile(ctx context.Context, obj KluctlProjectHolder, source sourcev1.Source) (*ctrl.Result, error)
	Finalize(ctx context.Context, obj KluctlProjectHolder)
}

type KluctlProjectReconcilerOptions

type KluctlProjectReconcilerOptions struct {
	MaxConcurrentReconciles   int
	HTTPRetry                 int
	DependencyRequeueInterval time.Duration
}

KluctlProjectReconcilerOptions contains options for the KluctlProjectReconciler.

type SourceRevisionChangePredicate

type SourceRevisionChangePredicate struct {
	predicate.Funcs
}

func (SourceRevisionChangePredicate) Update

Jump to

Keyboard shortcuts

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