Documentation ¶
Overview ¶
Package watches provides the structures and functions for mapping a GroupVersionKind to an Ansible playbook or role.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 Watch ¶
type Watch struct { GroupVersionKind schema.GroupVersionKind `yaml:",inline"` Playbook string `yaml:"playbook"` Role string `yaml:"role"` Vars map[string]interface{} `yaml:"vars"` MaxRunnerArtifacts int `yaml:"maxRunnerArtifacts"` ReconcilePeriod time.Duration `yaml:"reconcilePeriod"` ManageStatus bool `yaml:"manageStatus"` WatchDependentResources bool `yaml:"watchDependentResources"` WatchClusterScopedResources bool `yaml:"watchClusterScopedResources"` Finalizer *Finalizer `yaml:"finalizer"` // Not configurable via watches.yaml MaxWorkers int `yaml:"maxWorkers"` AnsibleVerbosity int `yaml:"ansibleVerbosity"` }
Watch - holds data used to create a mapping of GVK to ansible playbook or role. The mapping is used to compose an ansible operator.
func New ¶ added in v0.12.0
func New(gvk schema.GroupVersionKind, role, playbook string, vars map[string]interface{}, finalizer *Finalizer) *Watch
New - returns a Watch with sensible defaults.
func (*Watch) UnmarshalYAML ¶
UnmarshalYAML - implements the yaml.Unmarshaler interface for Watch. This makes it possible to verify, when loading, that the GroupVersionKind specified for a given watch is valid as well as provide sensible defaults for values that were omitted.
Click to show internal directories.
Click to hide internal directories.