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
	WatchAnnotationsChanges bool
}
    AnsibleOperatorReconciler - object to reconcile runner requests
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
	WatchAnnotationsChanges     bool
	MaxConcurrentReconciles     int
	Selector                    metav1.LabelSelector
}
    Options - options for your controller
 Click to show internal directories. 
   Click to hide internal directories.