controller

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: Apache-2.0 Imports: 33 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// ReconcilePeriodAnnotation - annotation used by a user to specify the reconciliation interval for the CR.
	// To use create a CR with an annotation "ansible.sdk.operatorframework.io/reconcile-period: 30s" or some other valid
	// Duration. This will override the operators/or controllers reconcile period for that particular CR.
	ReconcilePeriodAnnotation = "ansible.sdk.operatorframework.io/reconcile-period"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, options Options) *controller.Controller

Add - Creates a new ansible operator controller and adds it to the manager

Types

type AnsibleOperatorReconciler

type AnsibleOperatorReconciler struct {
	GVK              schema.GroupVersionKind
	Runner           runner.Runner
	Client           client.Client
	APIReader        client.Reader
	EventHandlers    []events.EventHandler
	ReconcilePeriod  time.Duration
	ManageStatus     bool
	AnsibleDebugLogs bool
}

AnsibleOperatorReconciler - object to reconcile runner requests

func (*AnsibleOperatorReconciler) Reconcile

Reconcile - handle the event.

type Options

type Options struct {
	EventHandlers               []events.EventHandler
	LoggingLevel                events.LogLevel
	Runner                      runner.Runner
	GVK                         schema.GroupVersionKind
	ReconcilePeriod             time.Duration
	ManageStatus                bool
	AnsibleDebugLogs            bool
	WatchDependentResources     bool
	WatchClusterScopedResources bool
	MaxConcurrentReconciles     int
	Selector                    metav1.LabelSelector
}

Options - options for your controller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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