Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromWatches ¶
func NewFromWatches(path string) (map[schema.GroupVersionKind]Runner, error)
NewFromWatches reads the operator's config file at the provided path.
Types ¶
type Finalizer ¶
type Finalizer struct {
	Name     string                 `yaml:"name"`
	Playbook string                 `yaml:"playbook"`
	Role     string                 `yaml:"role"`
	Vars     map[string]interface{} `yaml:"vars"`
}
    Finalizer - Expose finalizer to be used by a user.
type RunResult ¶ added in v0.2.0
type RunResult interface {
	// Stdout returns the stdout from ansible-runner if it is available, else an error.
	Stdout() (string, error)
	// Events returns the events from ansible-runner if it is available, else an error.
	Events() <-chan eventapi.JobEvent
}
    RunResult - result of a ansible run
type Runner ¶
type Runner interface {
	Run(string, *unstructured.Unstructured, string) (RunResult, error)
	GetFinalizer() (string, bool)
	GetReconcilePeriod() (time.Duration, bool)
	GetManageStatus() bool
}
    Runner - a runnable that should take the parameters and name and namespace and run the correct code.
 Click to show internal directories. 
   Click to hide internal directories.