driver

package
v0.57.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPodSpec added in v0.15.2

func DefaultPodSpec(d string) v1.PodSpec

DefaultPodSpec returns the default pod spec used for the given plugin driver type.

Types

type Base

type Base struct {
	Definition        manifest.Manifest
	SessionID         string
	Namespace         string
	SonobuoyImage     string
	CleanedUp         bool
	ImagePullPolicy   string
	ImagePullSecrets  string
	CustomAnnotations map[string]string
}

Base is the struct that stores state for plugin drivers and contains helper methods.

func (*Base) CreateWorkerContainerDefintion added in v0.15.2

func (b *Base) CreateWorkerContainerDefintion(hostname string, cert *tls.Certificate, command, args []string, progressPort, resultDir string, pluginEnv []v1.EnvVar) v1.Container

CreateWorkerContainerDefintion creates the container definition to run the Sonobuoy worker for a plugin.

func (*Base) GetDescription added in v0.53.1

func (b *Base) GetDescription() string

GetDescription returns the human-readable plugin description.

func (*Base) GetDriver added in v0.15.2

func (b *Base) GetDriver() string

GetDriver returns the Driver for this plugin.

func (*Base) GetName

func (b *Base) GetName() string

GetName returns the name of this Job plugin.

func (*Base) GetOrder added in v0.56.9

func (b *Base) GetOrder() int

GetOrder returns the order of this Job plugin.

func (*Base) GetResultFiles added in v0.15.1

func (b *Base) GetResultFiles() []string

GetResultFiles returns the files to be post-processed for this plugin.

func (*Base) GetResultFormat added in v0.15.1

func (b *Base) GetResultFormat() string

GetResultFormat returns the ResultFormat of this plugin.

func (*Base) GetSecretName

func (b *Base) GetSecretName() string

GetSecretName gets a name for a secret based on the plugin name and session ID.

func (*Base) GetSessionID

func (b *Base) GetSessionID() string

GetSessionID returns the session id associated with the plugin.

func (*Base) GetSourceURL added in v0.53.1

func (b *Base) GetSourceURL() string

GetSourceURL returns the sourceURL of the plugin.

func (*Base) MakeTLSSecret

func (b *Base) MakeTLSSecret(cert *tls.Certificate, ownerPod *v1.Pod) (*v1.Secret, error)

MakeTLSSecret makes a Kubernetes secret object for the given TLS certificate.

func (*Base) SkipCleanup added in v0.15.1

func (b *Base) SkipCleanup() bool

SkipCleanup returns whether cleanup for this plugin should be skipped or not.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL