daemonset

package
Version: v0.53.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	driver.Base
}

Plugin is a plugin driver that dispatches containers to each node, expecting each pod to report to the aggregator.

func NewPlugin

func NewPlugin(dfn manifest.Manifest, namespace, sonobuoyImage, imagePullPolicy, imagePullSecrets string, customAnnotations map[string]string) *Plugin

NewPlugin creates a new DaemonSet plugin from the given Plugin Definition and sonobuoy aggregator 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) Monitor

func (p *Plugin) Monitor(ctx context.Context, 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, ownerPod *v1.Pod, progressPort string) error

Run dispatches worker pods according to the DaemonSet's configuration.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL