Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) Cleanup(kubeclient kubernetes.Interface)
- func (p *Plugin) ExpectedResults(nodes []v1.Node) []plugin.ExpectedResult
- func (p *Plugin) FillTemplate(hostname string, cert *tls.Certificate) ([]byte, error)
- func (p *Plugin) GetName() string
- func (p *Plugin) GetResultType() string
- func (p *Plugin) GetSessionID() string
- func (p *Plugin) Monitor(kubeclient kubernetes.Interface, availableNodes []v1.Node, ...)
- func (p *Plugin) Run(kubeclient kubernetes.Interface, hostname string, cert *tls.Certificate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { Definition plugin.Definition SessionID string Namespace string SonobuoyImage string // contains filtered or unexported fields }
Plugin is a plugin driver that dispatches containers to each node, expecting each pod to report to the master.
func NewPlugin ¶
func NewPlugin(dfn plugin.Definition, namespace, sonobuoyImage string) *Plugin
NewPlugin creates a new DaemonSet plugin from the given Plugin Definition and sonobuoy master address
func (*Plugin) Cleanup ¶
func (p *Plugin) Cleanup(kubeclient kubernetes.Interface)
Cleanup cleans up the k8s DaemonSet and ConfigMap created by this plugin instance
func (*Plugin) ExpectedResults ¶
func (p *Plugin) ExpectedResults(nodes []v1.Node) []plugin.ExpectedResult
ExpectedResults returns the list of results expected for this daemonset
func (*Plugin) FillTemplate ¶ added in v0.11.0
FillTemplate populates the internal Job YAML template with the values for this particular job.
func (*Plugin) GetResultType ¶
GetResultType returns the ResultType for this plugin (to adhere to plugin.Interface)
func (*Plugin) GetSessionID ¶
func (*Plugin) Monitor ¶
func (p *Plugin) Monitor(kubeclient kubernetes.Interface, availableNodes []v1.Node, resultsCh chan<- *plugin.Result)
Monitor adheres to plugin.Interface by ensuring the DaemonSet is correctly configured and that each pod is running normally.
func (*Plugin) Run ¶
func (p *Plugin) Run(kubeclient kubernetes.Interface, hostname string, cert *tls.Certificate) error
Run dispatches worker pods according to the DaemonSet's configuration.